This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd 'D:\\' | |
imagefiles = dir('*.jpg'); | |
nfiles = length(imagefiles); | |
for ii=1:nfiles | |
currentfilename = imagefiles(ii).name; | |
I = imread(currentfilename); | |
% YOUr CODE HERE % | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# write following commands in windows cmd | |
chcp 65001 | |
set PYTHONIOENCODING=utf-8 | |
# now run your python script | |
python yourfile.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BW2 = edge(I,'Prewitt'); | |
imshow(BW2,'Parent',handles.axes2); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if size(I, 3) > 1 | |
output = rgb2gray(I); | |
else | |
output = I; | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bu=rgb2gray(b); | |
edge_prewitt = edge(bu,'Prewitt'); | |
imshow(edge_prewitt,'Parent',handles.axes2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bu=im2double(b); | |
threshold=im2bw(bu,0.15); | |
imshow(threshold,'Parent',handles.axes2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bu=im2double(b); | |
heq = histeq(bu); | |
imshow(heq,'Parent',handles.axes2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
im=getimage(handles.axes1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploytool |
NewerOlder