Info

此问题已关闭。 请重新打开它进行编辑或回答。

In a image segmentation process I want save the output in a variable

1 次查看(过去 30 天)
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,[]);

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by