-
大小: 5.67MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-11-06
- 语言: Matlab
- 标签: Scaramuzza OCamCalib 鱼眼
资源简介
基于鱼眼效果的产生图像,里面是比较简单的原理代码,方格图成像-Fish eye effect on the production images, which is a relatively simple principle of the code, grid map imaging
代码使用matlab实现
代码片段和文件信息
function add_suppress(calib_data)
if isempty(calib_data.n_ima)
fprintf(1‘No data to process.\n‘);
return;
end;
if calib_data.n_ima == 0
fprintf(1‘No image data available\n‘);
return;
end;
if isempty(calib_data.active_images)
calib_data.active_images = ones(1n_ima);
end;
n_act = length(calib_data.active_images);
if n_act < calib_data.n_ima
calib_data.active_images = [calib_data.active_images ones(1calib_data.n_ima-n_act)];
else
if n_act > calib_data.n_ima
calib_data.active_images = calib_data.active_images(1:calib_data.n_ima);
end;
end;
calib_data.ind_active = find(calib_data.active_images);
% I did not call check_active_images because I want to prevent a break
%check_active_images;
fprintf(1‘\nThis function is useful to select a subset of images to calibrate\n‘);
fprintf(1‘\nThere are currently %d active images selected for calibration (out of %d):\n‘length(calib_data.ind_active)calib_data.n_ima);
if ~isempty(calib_data.ind_active)
if length(calib_data.ind_active) > 2
for ii = 1:length(calib_data.ind_active)-2
fprintf(1‘%d ‘calib_data.ind_active(ii));
end;
fprintf(1‘%d and %d.‘calib_data.ind_active(end-1)calib_data.ind_active(end));
else
if length(calib_data.ind_active) == 2
fprintf(1‘%d and %d.‘calib_data.ind_active(end-1)calib_data.ind_active(end));
else
fprintf(1‘%d.‘calib_data.ind_active(end));
end;
end;
end;
fprintf(1‘\n‘);
if length(calib_data.ind_active)==0
fprintf(1‘\nYou probably want to add images\n‘);
choice = 1;
else
if length(calib_data.ind_active)==calib_data.n_ima
fprintf(1‘\nYou probably want to suppress images\n‘);
choice = 0;
else
choice = 2;
end;
end;
if (choice~=0) & (choice ~=1)
fprintf(1‘\nDo you want to suppress or add images from that list?\n‘);
end;
while (choice~=0)&(choice~=1)
choice = input(‘For suppressing images enter 0 for adding images enter 1 ([]=no change): ‘);
if isempty(choice)
fprintf(1‘No change applied to the list of active images.\n‘);
return;
end;
if (choice~=0)&(choice~=1)
disp(‘Bad entry. Try again.‘);
end;
end;
if choice
ima_numbers = input(‘Number(s) of image(s) to add ([] = all images) = ‘);
if isempty(ima_numbers)
fprintf(1‘All %d images are now active\n‘calib_data.n_ima);
calib_data.ima_proc = 1:calib_data.n_ima;
else
calib_data.ima_proc = ima_numbers;
end;
else
ima_numbers = input(‘Number(s) of image(s) to suppress ([] = no image) = ‘);
if isempty(ima_numbers)
fprintf(1‘No image ha
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 0 2013-10-03 14:20 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\pictures.txt
文件 320 2013-10-03 14:21 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\README.txt
文件 114688 2008-11-17 15:24 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\FindCornersVladimir.exe
文件 118784 2008-11-17 15:24 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\FindCorners.exe
文件 122880 2008-11-17 15:24 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\FindCornersVisual.exe
文件 122880 2008-11-17 15:24 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\FindCornersVisualSave.exe
文件 348160 2004-01-11 23:00 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\msvcr71.dll
文件 385024 2009-01-21 00:52 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\libguide40.dll
文件 618496 2008-11-17 15:24 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\highgui100.dll
文件 843824 2008-11-17 15:24 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\cv100.dll
文件 966656 2008-11-17 15:24 Scaramuzza_OCamCalib_v3.0_win\autoCornerFinder\cxcore100.dll
文件 2469 2009-09-21 16:24 Scaramuzza_OCamCalib_v3.0_win\loadppm.m
文件 2911 2013-09-20 10:14 Scaramuzza_OCamCalib_v3.0_win\recomp_corner_calib.m
文件 2786 2013-11-29 11:43 Scaramuzza_OCamCalib_v3.0_win\analyse_error.m
文件 4340 2013-11-29 11:41 Scaramuzza_OCamCalib_v3.0_win\create_simulation_points.m
文件 1798 2013-09-19 11:19 Scaramuzza_OCamCalib_v3.0_win\mosaic.m
文件 4387 2013-09-19 08:32 Scaramuzza_OCamCalib_v3.0_win\add_suppress.m
文件 9896 2013-10-21 12:35 Scaramuzza_OCamCalib_v3.0_win\calibrate.m
文件 2638 2013-09-20 13:28 Scaramuzza_OCamCalib_v3.0_win\calibration.m
文件 1257 2009-09-21 16:24 Scaramuzza_OCamCalib_v3.0_win\cam2world.m
文件 2090 2013-10-02 13:05 Scaramuzza_OCamCalib_v3.0_win\C_calib_data.m
文件 781 2013-09-18 14:12 Scaramuzza_OCamCalib_v3.0_win\check_active_images.m
文件 5221 2013-09-19 09:13 Scaramuzza_OCamCalib_v3.0_win\check_directory.m
文件 6589 2013-11-29 14:52 Scaramuzza_OCamCalib_v3.0_win\optimizefunction.m
文件 2623 2013-09-19 09:23 Scaramuzza_OCamCalib_v3.0_win\click_ima_calib.m
文件 26466 2013-10-02 13:04 Scaramuzza_OCamCalib_v3.0_win\click_ima_calib_rufli.m
文件 5193 2009-09-21 16:24 Scaramuzza_OCamCalib_v3.0_win\cornerfinder.m
文件 2969 2013-09-19 09:12 Scaramuzza_OCamCalib_v3.0_win\data_calib.m
文件 1121 2009-09-21 16:24 Scaramuzza_OCamCalib_v3.0_win\draw_axes.m
文件 1392 2009-09-21 16:24 Scaramuzza_OCamCalib_v3.0_win\export_data.m
文件 369 2013-09-20 09:22 Scaramuzza_OCamCalib_v3.0_win\exportData2TXT.m
............此处省略60个文件信息
评论
共有 条评论