imagesc, subtraction of two images
Show older comments
good day .. my aim is it extract optic disc ..i have applied otsu threshold method ..i have 2 subtract two images but when i subtract i get a blank image . my process followed green component -->tophat using large and small structural element that gives me 2 outputs --->then i apply otsu threshold for both tophat(large) and tophat(small) ..after this i want to subtract these otsu images ..but i am not able to do it please help me
se = strel('disk',500,8);
im2 = imtophat(I,se);
se1 = strel('disk',50,8);
im3 = imtophat(I,se1);
IDX = otsu(im2,6);
figure;
subplot(2,2,1);
axis image off;
imagesc(IDX)
colormap(gray);
IDX1 = otsu(im3,6);
figure;
subplot(2,2,1);
axis image off;
imagesc(IDX1)
colormap(gray);
i tried IDX -IDX1 but i amnot getting any image please somebody tell me whr am i goin wrong
Accepted Answer
More Answers (0)
Categories
Find more on Image Thresholding in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!