image_geometry Rectification -> remove black Pixels
Hi
I decided to do all Camera Stuff ith die image_geometry class provided by the opencv package.
Prior I rectified my camera image with:
getOptimalNewCameraMatrix initUndistortRectifyMap remap
This worked well, i could choose to show the black pixels at the edges or to cut an size the image so it only has valid pixels.
With image_geometry and the pinhole camera model class i don't see a way so rectify the image AND remove all regions with unvalid pixels.
Does someone know how?
THX