Effacer les filtres
Effacer les filtres

Cannot detect dots in calibration image with detectCircleGridPoints

1 vue (au cours des 30 derniers jours)
Hi all,
I'm trying to calibrate my camera based on a dotted pattern on a board. I see I can use the detectCircleGridPoints algorithm, but cannot get it to detect any of the points and get imagePoints = []. Below my code.
What am I doing wrong?
clc; clear all; close all;
fileName = 'dotted_cali_fig.tiff'; %to attach the file I had to put it in .png
img = imread(fileName);
patternDims = [7 35];
imagePoints = detectCircleGridPoints(img,patternDims,PatternType="symmetric")

Réponse acceptée

Antoni Garcia-Herreros
Antoni Garcia-Herreros le 26 Avr 2023
Hello Jos,
I'm not sure why detectCirlceGridPoints is not working, however, you could try using regionprops:
R=R(R(:,1)>5,:); % Filter by Area > 5 pixels
ListPoints=R(R(:,4)>prctile(R(:,4),5),:); % Filter by circularity
Hope this helps
  1 commentaire
Jos Muller
Jos Muller le 8 Mai 2023
Thanks Antoni,
It works for most of the points in my example figure. Some more conservative 'area' threshold works beter. The circularity filter is a nice suggestion, allthough in my example I lose to much points. I can continue to work from this, thanks!

Connectez-vous pour commenter.

Plus de réponses (0)


En savoir plus sur Image Processing and Computer Vision dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by