Operator Library: Base
Library: Base
The operator SampleUp increases the image size by upsampling the input image. The image size upsampling factor can be individually defined for the width and height in steps 1, 2, 4, 8 and 16. The upsampling factor is defined using parameters Expand_X and Expand_Y. The output pixels are computed by duplicating pixels (nearest neighbor method).
See the following figure for explanation of the operator's output. In this example, an upsampling by 4 in x-direction and 2 in y-direction is performed.
Note that the parallelism at the output is not increase even though more pixels have to be transported on the link. Thus this operator cannot process the input image data at its parallelism.
Operator Restrictions
-
The lines of each input image must have the same length. Thus images with varying line lengths are not allowed.
-
Empty images or images with empty lines are not allowed.
Expand_X | |
---|---|
Type | static parameter |
Default | UpSampleXBy1 |
Range | {UpSampleXBy1, UpSampleXBy2, UpSampleXBy4, UpSampleXBy8, UpSampleXBy16} |
This parameter defines the upsampling factor for the image width. |
Expand_Y | |
---|---|
Type | static parameter |
Default | UpSampleYBy1 |
Range | {UpSampleYBy1, UpSampleYBy2, UpSampleYBy4, UpSampleYBy8, UpSampleYBy16} |
This parameter defines the upsampling factor for the image height. |
The use of operator SampleUp is shown in the following examples:
-
'Histogram of Oriented Gradients (HOG)'
Examples- Histogram of oriented Gradients