Hi can anybody help me why adjcontrast() function doesn't work? Is there an alternative to adjust contrast? Could you please help me denoise the image?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Surya Gnyawali
il 25 Mag 2015
Modificato: Walter Roberson
il 25 Mag 2015
I need to enhance a perfusion image to see the blood vessels in Laser Speckle Imaging.
Tried regionprops(), medfilt2(), imdilate(). finally I tried this code
newim = adjcontrast(im1, gain, cutoff);
if isa(im1,'uint8');
newim = double(im1);
else
newim = im1;
end
% rescale range 0-1
newim = newim-min(min(newim));
newim = newim./max(max(newim));
newim = 1./(1 + exp(gain*(cutoff-newim))); % Apply Sigmoid function
figure, imshow(newim);
The outcome is "Undefined function or variable 'adjcontrast'."
Thank you so much in advance
Surya
0 Commenti
Risposta accettata
Image Analyst
il 25 Mag 2015
You need to find the function adjcontrast() and make sure it's in the current folder or elsewhere on the search path. If you can't find it then maybe you can write your own using imadjust().
0 Commenti
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!