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.
CV Homography Map
- map_x
- map_y
- matrix
- map_x
- map_y
◄inverttrue►
Categoryimage/CV/remap
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| map_x | NPARRAY | Incoming source-x coordinate map to distort. Start the chain with 'CV Identity Map'; further remap nodes compose onto it. | |
| map_y | NPARRAY | Incoming source-y coordinate map (must share map_x's shape - both come from the same chain). | |
| matrix | NPARRAY | 3x3 homography. | |
| invert | BOOLEAN | true | Invert the matrix (on for src->dst homographies; off if you already have the dst->src mapping). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| map_x | NPARRAY | — |
| map_y | NPARRAY | — |