warpPerspective errors if do it separately by channels

asked 2019-12-22 21:12:00 -0600

lunasdejavu gravatar image

I am making a project on a camerawhich the algorithm will get 4 points to warp the license plate . Since the chip make the image like RRR....GGGG...BBB..., I do the warp separately by channels then combine it together. the result is correct if the license plate is not moving,but if it is moving there will be lines on the image with blue or yellow colors like aliasing happens.So could anyone tell me why the pixel values affect the result of the warp function like it does something like median filter and tell me where can I get the source code of the warp function?

edit retag flag offensive close merge delete

Comments

i don't understand, why you even try to warp the channels iindependantly. isn't that far more work than nessecary ?

why not first merge the channels, and then do a single warp ?

berak gravatar imageberak ( 2019-12-23 04:04:42 -0600 )edit
1

This sounds like a three-shot camera with delays between channels and the same problem should be in the source image. I don't understand why a geometry transformation would care about channels. Of course, the problem could be in the code where you read the source image or where you contruct the new image, or somewhere inbetween... But indeed, the workflow is kind of hard to understand.

mvuori gravatar imagemvuori ( 2019-12-23 08:09:36 -0600 )edit