필터 지우기
필터 지우기

how to get adaptive contrast enhancement transformation of the gray image ?

조회 수: 2 (최근 30일)
can this be done without using adapthisteq()?
the local variation of the lesions obtained by
g=255((sigmoid(color)-sigmoid(graymin))/(sigmoid(graymax) - sigmoid(graymin)) where # * sigmoid(color) = 1/(1+exp((mean - colorimage)/variance) # * sigmoid(graymin) is the min sigmoid value of the grayimage # * sigmoid(graymax) is the max sigmoid value of the grayimage
how can i get colorimage subtracted from meanimage which is grayscale

채택된 답변

Image Analyst
Image Analyst 2013년 8월 29일
Sure, you can do almost whatever you want if you write it yourself. You can make a color image out of a grayscale image and then subtract:
grayImage3D = cat(3, grayImage, grayImage, grayImage);
% Cast to float to avoid clipping at 0.
newImage = double(rgbImage) - double(grayImage3D); % It's floating point now.
  댓글 수: 6
kalaivaani
kalaivaani 2013년 8월 30일
Gmax is the maximum intensity value of greenchannel image(1*700) varianceimage &meanimage are greenchannel images (605*700)
??? Undefined function or method 'exp' for input arguments of type
'uint8'.
Error in ==> Untitled2 at 30
fmax = 1./(1+exp((uint8(meanimage)
-uint8(Gmax)))./uint8(varianceimage));
Image Analyst
Image Analyst 2013년 8월 30일
You gotta learn to read the error messages. It says it doesn't want uint8, so what do you think you should do now?

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by