BGRA2Gray
Converts a BGRA image to gray scale.
Converts a BGRA image to gray scale.
The gray scale value is computed as:
gray = dot(RGBA, vec4(0.29899999, 0.58700001, 0.114, 0.0))
where RGBA
is read and ordered from the in_bgra input image.
Inputs
in_bgra : ImageView. rgba8ui image in BGRA channel order.
Outputs
out_gray : ImageView r8ui image. Thre gray scale values are in the range [0, 255]. This image is allocated in the same memory as in_bgra.
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.