MATLAB: Find position of fiducials in an image

fiducialsimage analysisMATLABshape detection

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

Best Answer

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:
Related Question