Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Mahdi Noroozi
Mahdi Noroozi 2019 年 3 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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