Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How to use "cpselect" funtion for a folder image and save parameters it?

1 visualizzazione (ultimi 30 giorni)
Hi guys;
I want to detect the corners of between the checkerboard and all of the images in a specific folder and save their parameters separately.
image_folder='E:\Homography-for-Linear-Image-Transformation-master\images of cailbration';
filenames = dir(fullfile(image_folder,'*.jpg'));
total_images = numel(filenames);
for n = 1:total_images
f= fullfile(image_folder, filenames(n).name);
images_camera = imread(f);
end
J = checkerboard(800);
J = J>0.5;
imwrite(J,'checkerboard400.jpg');
%% Obtain the main points in images
for n = 1:total_images
[selectedMovingPoints,selectedFixedPoints]= cpselect(f,J,'Wait',false);
save(sprintf('Homography_Matrice%n.mat','selectedMovingPoints%n','selectedFixedPoints%n',n));
end

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by