1function [output] =
prepImage(path, x,y,resizeMode, color, limitGrayLevel, invert)
6 if(color ==
"grayValues")
9 image = 1-(double(input)./256);
11 image = double(input)./256;
13 elseif(color ==
"binary")
14 image=
img2bin(path,limitGrayLevel,invert);
17 output = transpose(
ResizeImage(image, y,x,resizeMode));
function ResizeImage(in input, in x, in y, in mode)
Passt ein Bild an eine andere Auflösung an. Verschiedene Anpassungsoptionen wählbar.
function img2bin(in path, in grayValue, in invert)
function prepImage(in path, in x, in y, in resizeMode, in color, in limitGrayLevel, in invert)