Owen code for imopen morphology function why not work ?how to solve ?

13 ビュー (過去 30 日間)
aslan memo
aslan memo 2019 年 11 月 5 日
編集済み: aslan memo 2019 年 11 月 5 日
clc
clear all
close all
im=imread('C:\Users\ASLAN\Desktop\ders\image processing\hw2\fingerprint.tif');
[m,n]=size(im);
a=[0 1 0;1 1 1;0 1 0];
for i=1:m
for j=1:n
if a(i,j)==0
im(i,j)=0;
[i,j]=min(im);
mm=min(im);
end
end
end
figure
imshow (mm);
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 11 月 5 日
[i,j]=min(im) ;
Can you elaborate more, what you are trying to do?
aslan memo
aslan memo 2019 年 11 月 5 日
編集済み: aslan memo 2019 年 11 月 5 日
in morphology, if use (imopen) there are 2 step
1 -imerode
if a(i,j)==0
im(i,j)=0;
2-imopen
in imopen select the minimum number
[i,j]=min(im);
mm=min(im);

サインインしてコメントする。

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by