필터 지우기
필터 지우기

How i can save all values of segmented image?

조회 수: 1 (최근 30일)
Muhammad Hammad Malik
Muhammad Hammad Malik 2018년 12월 11일
댓글: Muhammad Hammad Malik 2018년 12월 11일
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

채택된 답변

Image Analyst
Image Analyst 2018년 12월 11일
See attached code.
  댓글 수: 1
Muhammad Hammad Malik
Muhammad Hammad Malik 2018년 12월 11일
thanks but see what kind of data i am getting. is it right?see attach imagedata.JPG

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

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

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by