Borrar filtros
Borrar filtros

How i can save all values of segmented image?

1 visualización (últimos 30 días)
Muhammad Hammad Malik
Muhammad Hammad Malik el 11 de Dic. de 2018
Comentada: Muhammad Hammad Malik el 11 de Dic. de 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.tomato.png

Respuesta aceptada

Image Analyst
Image Analyst el 11 de Dic. de 2018
See attached code.
  1 comentario
Muhammad Hammad Malik
Muhammad Hammad Malik el 11 de Dic. de 2018
thanks but see what kind of data i am getting. is it right?see attach imagedata.JPG

Iniciar sesión para comentar.

Más respuestas (1)

KSSV
KSSV el 11 de Dic. de 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
  1 comentario
Muhammad Hammad Malik
Muhammad Hammad Malik el 11 de Dic. de 2018
thanks for your answer but i want to know what these values 'iwant','R','X','Y'means?thanksCaptured.JPG

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by