Nodes/comfyui_cv/CV Homography Map
ComfyUI Node

CV Homography Map

Applies a 3x3 projective transform to the map coordinates - cv2.warpPerspective expressed as a remap, so a perspective change can be CHAINED with lens/wave/pinch distortions in one resampling pass. With invert enabled (default) feed the usual source-to-destination homography ('CV Find Homography', getPerspectiveTransform); remap needs the opposite direction and the node inverts it for you.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Homography Map
  • map_x
  • map_y
  • matrix
  • map_x
  • map_y
inverttrue
Categoryimage/CV/remap

Inputs (4)

NameTypeDefaultDescription
map_xNPARRAYIncoming source-x coordinate map to distort. Start the chain with 'CV Identity Map'; further remap nodes compose onto it.
map_yNPARRAYIncoming source-y coordinate map (must share map_x's shape - both come from the same chain).
matrixNPARRAY3x3 homography.
invertBOOLEANtrueInvert the matrix (on for src->dst homographies; off if you already have the dst->src mapping).

Outputs (2)

NameTypeDescription
map_xNPARRAY
map_yNPARRAY