Extend the usage of pcv.transform.warp #717
Replies: 4 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
When testing on this function, I came across another issue which has occurred several times: |
Beta Was this translation helpful? Give feedback.
-
Addressed in #720 Updates for the warp function
Added another function warp_align, which takes a target image, a transformation matrix, and an optional reference image as inputs, warp the target image. For visualization, if reference image is provided, the blended image of reference image and warped image would be shown; otherwise, the blended image of warped image and original image would be shown. |
Beta Was this translation helpful? Give feedback.
-
Because the openCV function cv2.warpPerspective won't take input image with datatype int, so when input image is a binary image whose datatype is int, it won't work. Either convert the datatype to float or use pcv.transform.rescale would work. I did not include this "check and covert" part inside the function. |
Beta Was this translation helpful? Give feedback.
-
Currently the pcv.transform.warp function can only (perspectively) warp a grayscale or binary image, I propose that we make it also capable of warping an rgb image.
Also, this warping function uses perspective transformation in opencv, I think we can also include affine transformation.
Beta Was this translation helpful? Give feedback.
All reactions