09 2013 档案
摘要:白底换红底局部阈值调整边界高斯滤波function demoglobal Rglobal thresholdglobal imgglobal dstColorglobal rectglobal maskglobal biasStepbiasStep = 5;dstColor = [255 0 0]; %% background colorimg = imread('g.jpg'); %% load photoR = img(:,:,1);[mm, nn] = size(R);rect = [1 1 nn, mm];threshold = 200 * ones(mm, nn);
阅读全文