How to save a segmented part of a image to a variable
조회 수: 2 (최근 30일)
이전 댓글 표시
I have segmented a HSV image. All i want is to save the segmented part of the image to be saved in a variable
댓글 수: 2
Jamil
2015년 1월 1일
SAME QUESTION 2 ME
I want to use the output to find the contour of the image. It shows correct out while i use 'sm[]' rather 'sm'
I used the code below ----------------
img = imread('o17.jpg');
gfrgb = imfilter(img, fspecial('gaussian', 3, 3), 'symmetric', 'conv');
cform = makecform('srgb2lab', 'whitepoint', whitepoint('d65'));
lab = applycform(gfrgb,cform);
l = double(lab(:,:,1)); lm = mean(mean(l));
a = double(lab(:,:,2)); am = mean(mean(a));
b = double(lab(:,:,3)); bm = mean(mean(b));
sm = (l-lm).^2 + (a-am).^2 + (b-bm).^2;
figure;imshow(sm,[]);
Image Analyst
2015년 1월 1일
First read this and then post your question in a new discussion thread and post your image and say what you want to measure. Basically you're computing the delta E image from the mean LAB color, but I don't know how this will let you find the "contour of the image" - whatever that is (please define it in your new question).
답변 (1개)
Image Analyst
2014년 2월 25일
I don't know what it means. You say you have segmented it. So where is that segmented image stored if it's not in a variable? Is it just stored in thin air? Where the heck is it?
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!