How can i set same intensity of two different RGB image?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rashidul Alim Anik
am 7 Mär. 2022
Beantwortet: yanqi liu
am 8 Mär. 2022
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/917029/image.jpeg)
I want the white blood cell.when i set threshold for one,other does not work properly.can i find a code to set one thershold/intensity for grtting the WBC?
0 Kommentare
Akzeptierte Antwort
yanqi liu
am 8 Mär. 2022
may be use hsv or lab colorspace to segment,such as
im = imread('https://ww2.mathworks.cn/matlabcentral/answers/uploaded_files/917019/8.jpg');
jm = rgb2hsv(im);
s = mat2gray(jm(:,:,2));
s = imcomplement(s);
h = mat2gray(jm(:,:,1));
bw = imbinarize(s,'adaptive');
bw = bwareafilt(imfill(imclose(bw, strel('disk', 10)), 'holes'),1);
bw2 = imbinarize(h,'adaptive','ForegroundPolarity','dark','Sensitivity',0.9);
bw2(bw) = 0;
figure; imshow(im);
hold on; h = imshow(label2rgb(bwlabel(bw)), []);
set(h, 'AlphaData', 0.5)
0 Kommentare
Weitere Antworten (1)
Image Analyst
am 7 Mär. 2022
Use the Color Thresholder app on the Apps tab of the tool ribbon. Use HSV color space and then Export the function, and then you can call it from your main program.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Biomedical Imaging finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!