1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
% load test
clear all; close all;
%soustraction dark
dark=imread('E:\iliade\28.02.2014\418.972\framelink\dark.bmp');
Im=imread('E:\iliade\28.02.2014\418.972\framelink\500nm.bmp');
Ims=Im-dark
%affichage image soustraite
figure, imagesc(dark), colorbar
title('dark');
figure, imagesc(Im), colorbar
title('image brute');
figure, imagesc(Ims), colorbar
title('Image soustraite du dark');
Imf=Ims;
% taille de l'image
[m,n]=size(Imf)
% Max sur les collonne et lignes
for i=1:n
% %recherche valeur max
[maxval(i) maxloc(i)] = max(Imf(:,i));
%recherche coordonnées valeur max
[maxloc_row(i) maxloc_col1(i)]=ind2sub(size(Imf),maxloc(i));
end
xlswrite('valeur max en fx colonne.xlsx', rand(135,1312));
figure, plot(maxval)
title('val max en fx colonne');
xlswrite('positionmax.xlsx', rand(135,1312));
figure, plot(maxloc_row)
title('position max en fx colonne'); |
Partager