I need to generate a false color image based on intensity of a grayscale image which must be adjust the range of intensity by GUI slider bar
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Duantemdoung Dethsuphar
am 12 Dez. 2019
Beantwortet: Vinai Datta Thatiparthi
am 16 Dez. 2019
I'm very new to Matlab, so please give me an advice please.
I have a gray scale image and I want to divide it into 3 regions based on intensity of the image then color them in to red green and blue.
but it must be able to adject the range of each intensity by GUI slider bar (guide)
Do you have any suggestion for coding this? Thank you so much for you kindness
0 Kommentare
Antworten (1)
Vinai Datta Thatiparthi
am 16 Dez. 2019
Hey!
Welcome to MATLAB!
MATLAB provides support for multilevel thresholding through the function multithresh. Here, since you need 3 regions, the number of threshold values (N) when using multithresh will be 2.
im = imread('Your Image'); % Read your Grayscale image here
levels = multithresh(im, 2); % Get two threshold value outputs to divide into three regions
segIm = imquantize(im, levels); % The output image has quantized intensity values
imshow(segIm);
"...then color them in to red green and blue."
Since your input image is a grayscale image, it's not clear to me how you want to add color to it.
You can alter the callbacks for different components in your app to include these functions. Also, as an extension, consider using App Designer to ease your process.
Hope this helps!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Modify Image Colors finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!