Info
This question is closed. Reopen it to edit or answer.
How to use "cpselect" funtion for a folder image and save parameters it?
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!