Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

use of 'imcontrast'?

143 views
Skip to first unread message

chalres

unread,
Nov 3, 2005, 3:18:12 PM11/3/05
to
Hi all,

I want to use imcontrast to adjust the contrast of an image before I
segment the image according to the contrast.

But I don't know how to use it correctly.

for example,

figure, imshow(I)
imcontrast(h); (or h= imcontrast(h)))
% next steps
.....

In a program, it goes to next steps before I adjust the contrast.

Thanks!

Laszlo Balkay

unread,
Nov 4, 2005, 5:47:25 PM11/4/05
to
Hi,

Use the the UIWAIT function to block the execution until
you close the "Adjust Contrast tool":

....
figure;
image_h = imshow(I);
imcontrast_h = imcontrast(image_h);
uiwait(imcontrast_h);
....

Laszlo

j.tan...@gmail.com

unread,
Apr 1, 2016, 4:36:48 AM4/1/16
to
hi
I had the same problem
you can use : imadjust
MATLAB


g=imadjust(f,[low_in high_in],[low_out high_out],gamma)
notice: first,you must normalize values . ie
pixel values in grayscale image are between : [0, 255]
after normalize: [0,1]
example:
if you want change intenstity from [125 250] to [0 255]
g=imadjust(f,[125/255 250/255],[0 1])
for more information visit :
http://d-i-p.ir/%D9%85%D8%B1%D9%88%D8%B1%DB%8C-%D8%A8%D8%B1-%D9%81%D8%B5%D9%84-%D8%B3%D9%88%D9%85-%DA%A9%D8%AA%D8%A7%D8%A8-%D9%BE%D8%B1%D8%AF%D8%A7%D8%B2%D8%B4-%D8%AA%D8%B5%D9%88%DB%8C%D8%B1-%D8%AF%DB%8C/

rochet kri

unread,
Apr 5, 2016, 4:22:08 AM4/5/16
to
0 new messages