Task_3DPreview::task() supports only input color RGB images.
Would be great to add support for input grayscale 8-bit images.
It just need to add a switch instruction, and handle the different images types.
for grayscale 8-bit: case:
replace line
cv::Vec3b pixel = merged.at(y, x);
by
uchar pixel = merged.at(y, x);
Task_3DPreview::task() supports only input color RGB images. Would be great to add support for input grayscale 8-bit images. It just need to add a switch instruction, and handle the different images types.
for grayscale 8-bit: case: replace line cv::Vec3b pixel = merged.at(y, x);
by(y, x);
uchar pixel = merged.at
and replace lines m_result.at(cam_y_d, cam_x) = cv::Vec4b(pixel[0], pixel[1], pixel[2], 255);
m_result.at(cam_y_d, cam_x + 1) = cv::Vec4b(pixel[0], pixel[1], pixel[2], 255);
by
m_result.at(cam_y_d, cam_x) = cv::Vec4b(pixel, pixel, pixel, 255);
m_result.at(cam_y_d, cam_x + 1) = cv::Vec4b(pixel, pixel, pixel, 255);