how to save image on which calculation are performed?

조회 수: 2 (최근 30일)
Hash ir
Hash ir 2016년 9월 28일
댓글: Adam 2016년 9월 30일
img = imread('Image');
gfrgb = imfilter(img, fspecial('gaussian', 3, 3), 'symmetric', 'conv');
cform = makecform('srgb2lab', 'AdaptedWhitePoint', 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).^1.7 + (a-am).^3.5 + (b-bm).^0.8;
imshow(sm,[]);
how to save resultant image in ?
also gbvs images with this syntax show_imgnmap( img2 , map);

채택된 답변

Massimo Zanetti
Massimo Zanetti 2016년 9월 28일
You can save your image sm as .png as follows:
imwrite(sm,'mySavedImage.png');
  댓글 수: 2
Hash ir
Hash ir 2016년 9월 30일
it's not saving properly image ?
Adam
Adam 2016년 9월 30일
You have to make sure your scaling is correct for the data type you save to. If you save as 'double' then values are expected to be between 0 and 1, for example.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Blue에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by