Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Mahdi Noroozi
Mahdi Noroozi le 11 Mar 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
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

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by