ImageEn, unit ievision

TIEVisionNNet.setInputScale

TIEVisionNNet.setInputScale

Declaration

procedure setInputScale(value: double); safecall;

Description

Set scale multiplier for input image.
The scale factor value is multiplied with the pixel values of the input image. This method is used to normalize the pixel values of the input image.
Some models require input ranges 0..1, others 0..255.
Parameter Description
value Input scale

Example

// In this example the pixel values of the input image, which are typically in the
// the range 0..255, are scaled to the range 0..1.
nnet.setInputScale(1.0 / 255);