Demosaic polarized image

asked 2020-06-09 09:48:16 -0500

I have a polarized image which consists of 90, 45, 0, and 135 filters in a 2x2 grid. I'd like to demosaic this image into a 4-channel linearly interpolated full-resolution image. What is a simple and fast approach to accomplishing this?

image description

edit retag flag offensive close merge delete

Comments

A less than ideal approach is to create the half-resolution 4-channel image and then use cv::resize() with cv::INTER_LINEAR to resize to full resolution.

Der Luftmensch gravatar imageDer Luftmensch ( 2020-06-11 13:33:47 -0500 )edit