ImageDownsampleY_r8ui
Downsamples a gray level image along the Y axis.
Downsamples a gray level image along the Y axis.
Let W and H denote the width and height of the input in_gray image, respectively. The shape of the out_gray image is:
- out_gray.W = W
- out_gray.H = floor(H / 2)
That is, the output height is always an even number.
The value of a pixel out_gray(x, y) is computed as:
out_gray(x, y) = 0.25in_gray(x, 2y - 1) + 0.5in_gray(x, 2y) + 0.25in_gray(x, 2y + 1)
Inputs
in_gray : ImageView. r8ui image.
Outputs
out_gray : ImageView r8ui image. The downsampled image.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.