Has anyone had any luck using the function detectCircleGridPoints? I can't get it to work and I have the Computer Vision Toolbox installed.

12 visualizaciones (últimos 30 días)
I have a simple calibration pattern that I would like to implement in my code, but I keep getting the following error: Unrecognized function or variable 'detectCircleGridPoints'. I am simply calling this function within my script:
fileName = 'calibration.jpeg';
img = imread(fileName);
I = rgb2gray(img);
patternDims = [9,9]
detectCircleGridPoints(I,patternDims)
What am I doing wrong?
Here is the image by the way:
  6 comentarios
Torsten
Torsten el 16 de En. de 2022
Editada: Torsten el 16 de En. de 2022
To be sure, try the command for a toolbox for which you know you have a licence.
If it is a private MATLAB license you are working with, you will have to contact Mathworks Support Center, I guess.
If it is a campus licence, contact the computing center.

Iniciar sesión para comentar.

Respuesta aceptada

yanqi liu
yanqi liu el 17 de En. de 2022
clc; clear all; close all;
fileName = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/864390/image.jpeg';
img = imread(fileName);
I = rgb2gray(img);
I2 = imresize(I, 800/size(I,1), 'bilinear');
im = I2;
I2 = imcomplement(I2);
bw = ~im2bw(I2, 0.6);
bw = bwareaopen(bw, 10);
bw = imfill(bw, 'holes');
bw2 = ~imopen(bw, strel('disk', 3));
patternDims = [9 9];
imagePoints = detectCircleGridPoints(im2uint8(bw2),patternDims,PatternType="symmetric")
imagePoints = 81×2
373.8634 224.8094 374.8543 270.5855 375.4484 315.5516 375.6929 360.0652 375.7049 404.0779 375.3967 448.0973 374.4328 492.8970 373.1154 538.0381 371.4042 584.3329 419.6315 226.0630
J = insertText(im,imagePoints,1:size(imagePoints,1));
J = insertMarker(J,imagePoints,'x',Color="green",Size=5);
imshow(J)
title("Detected a Circle Grid of Dimensions " + mat2str(patternDims))
  5 comentarios
yanqi liu
yanqi liu el 18 de En. de 2022
yes,sir,may be use the code we discuss,or upload your now code which find errors

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by