資源簡介
利用變閾值重心法提取線結構光中心的代碼。
利用變閾值重心法提取線結構光中心的代碼。
代碼片段和文件信息
function?position?=?extract_line_center(aT)
?
%?position???=???extract_line_center(aT)
%?
%?函數(shù)功能:?????使用變閾值重心法提取光刀中心線
%?
%?輸入:?????????a??待處理圖像的歸一化?m*n?matrix?
%????????????????T??變閾值重心法的閾值(如果不輸入閾值?T?,程序默認缺省值?T?=?5?)
%?
%?
%?輸出:?????????position??提取的光刀中心線
%?
%?For?Example:
%?
%????????????????p?=?extract_line_center(I);
%????????????????figure
%????????????????imshow(I);hold?on
%????????????????[mn]?=?size(I);
%????????????????for?i?=?1:m
%????????????????????plot(p(i)i‘.‘‘LineWidth‘2‘Color‘‘red‘);%繪制提取的光刀線?
- 上一篇:基線解算的matlab源碼
- 下一篇:邏輯航跡起始算法代碼
評論
共有 條評論