How i can save all values of segmented image?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad Hammad Malik
am 11 Dez. 2018
Kommentiert: Muhammad Hammad Malik
am 11 Dez. 2018
i have extracted the tomato, now i want to know x,y, RGB, all values regarding this.how i can do it?thanks
see image.

0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 11 Dez. 2018
I = imread('download.png') ;
I1 = rgb2gray(I) ;
[y,x] = find(I1) ; % this igves you (x,y)
%
[nx,ny,nz] = size(I) ;
[X,Y] = meshgrid(1:ny,1:nx) ;
R = I(:,:,1) ;
iwant = zeros(length(x),nz) ;
for i = 1:nz
iwant(:,i) = interp2(X,Y,double(I(:,:,i)),x,y) ;
end
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!