Find position of fiducials in an image

조회 수: 9 (최근 30일)
Thomas Koelen
Thomas Koelen 2015년 4월 22일
답변: KIVANÇ mutlu 2020년 5월 30일
I have the following image:
I'm trying to let maltab find the center point of the fiducials, but I can't think of a good way to do it. I tried to find edges, and I also tried corners, both didn't really work out.
Any ideas that might help me further?
kind regards
Thomas
  댓글 수: 1
Thomas Koelen
Thomas Koelen 2015년 4월 22일
편집: Thomas Koelen 2015년 4월 22일
Tried something wiht edge, getting this..:
It doesnt even show the edges of the fiducials :(
edit:
got something a bit better now:

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

채택된 답변

Thomas Koelen
Thomas Koelen 2015년 4월 23일
For anyone wondering how I fixed this:
clc
clear all
close all
original=imread('Untitled12345.png');
foto=im2bw(imread('Untitled12345.png'),0.35);
nhood = zeros(19);
nhood(10,:) = ones(1,19);
nhood(:,10) = ones(19,1);
strel1 = strel('arbitrary',nhood);
IM2=imdilate(foto,strel1);
IM3=imcomplement(IM2);
IM3=medfilt2(IM3);
B = bwboundaries(IM3,'noholes');
for iloc=1:length(B)
locxy(iloc,1)=round(mean(B{iloc}(:,1)));
locxy(iloc,2)=round(mean(B{iloc}(:,2)));
end
imshow(original);
hold on
plot(locxy(:,2),locxy(:,1),'*')
which gives me:

추가 답변 (1개)

KIVANÇ mutlu
KIVANÇ mutlu 2020년 5월 30일
image processing in a certain area and recording this area. How can we record the process parameters made in the image. two will be created in this area. The program will be registered and opened according to the picture type and will process images in these areas according to the set references.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by