1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| clear all;
clc;
sc=20:40:100;
comp=0.1:0.4:0.9
color=0.1:0.4:0.9
wc1=1
wc2=1
wc3=1
wc4=1
%for i=1:2
%lecture des images
Im=imread('D:\images\zh1_1_1_segmented_sc_100_comp_0.1_color_0.1_wc1_1_wc2_1_wc3_1_wc4_1.tif');
numberOfDimensions = ndims(Im)
size(Im)
numel(Im)
hn1 = imhist(Im)./numel(Im);
file= sprintf ('D:\images\zh1_1_1_segmented_sc_%1f_comp_%1f_color_%1f_wc1_%1f_wc2_%1f_wc31f_%_wc4_%1f.tif',sc,comp,color,wc1,wc2,wc3,wc4);
fle=imread(file);
numberOfDimensions = ndims(file)
imhist(file); |
Partager