필터 지우기
필터 지우기

Morphological operation result is not displayed after applying Laplacian of Gaussian on the image.

조회 수: 1 (최근 30일)
Hello ! i have to apply morphoogical operation on the biomedical image...when i apply Laplcain of gaussian before the morphological operation then result is just a black image......what is the problem in this code.
img_BlueRation=imread('imgage');% img_BlueRation is the input image
Gauss_filter = fspecial('gaussian',[13,13],4.0);
img_Gauss = imfilter(img_BlueRation,Gauss_filter,'symmetric', 'conv');
Laplac_filter = fspecial('laplacian');
img_LOG = imfilter(img_Gauss,Laplac_filter,'symmetric', 'conv');
struc_Element=strel('disk',3,8)
img_MorphoOpen=imopen(img_LOG,struc_Element);
img_MorphoClose=imclose(img_MorphoOpen,struc_Element);
figure;
imshow(img_MorphoClose,[]);

답변 (1개)

Image Analyst
Image Analyst 2014년 9월 2일
It worked for me when I used cameraman.tif. Try casting to double right after you read it in:
img_BlueRation = double(img_BlueRation);
  댓글 수: 2
Tahir
Tahir 2014년 9월 2일
for camerman image...it will work...but for my image it will not...because my image is medical image having fine details.
.
Image Analyst
Image Analyst 2014년 9월 2일
Maybe everything got filtered away. Post your image if you want me to try it.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by