Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by