回覆列表
  • 1 # 無論你我

    [out,revertclass] = tofloat(inputimage)inputimage 輸入影象out 輸出浮點影象,revertclass 輸入影象的型別另外,tofloat為岡薩雷斯數中的IPT函式,附上原始碼:function [out,revertclass] = tofloat(inputimage)%Copy the book of Gonzalesidentify = @(x) x;tosingle = @im2single;table = {"uint8",tosingle,@im2uint8 "uint16",tosingle,@im2uint16 "logical",tosingle,@logical "double",identify,identify "single",identify,identify};classIndex = find(strcmp(class(inputimage),table(:,1)));if isempty(classIndex) error("不支援的影象型別");endout = table{classIndex,2}(inputimage);revertclass = table{classIndex,3};

  • 中秋節和大豐收的關聯?
  • SD敢達關於SS技術?