Houdini 20.5 Nodes VOP nodes

Lens OpenCV Distort VOP node

A VOP that generates the NDC coordinates with the OpenCV lens distortion model applied on a Karma lens shader.

On this page
Since 20.5

Overview

This is a lens shader component that generates the NDC coordinates with the OpenCV distortions applied on a Karma Physical Lens Core node.

Inputs

enabled

Turn this on to use an the OpenCV defined intrinsic camera parameters for lens distortion.

Refer to OpenCV documentation for more details on each of the constants in the intrinsic camera parameters.

x

y

k1

The k1 radial distortion constant in the intrinsic camera parameters defined by OpenCV.

Positive values will produce a barrel distortion, and negative values will produce a pincushion distortion.

k2

The k2 radial distortion constant in the intrinsic camera parameters defined by OpenCV.

Positive values will produce a barrel distortion, and negative values will produce a pincushion distortion.

k3

The k3 radial distortion constant in the intrinsic camera parameters defined by OpenCV.

Positive values will produce a barrel distortion, and negative values will produce a pincushion distortion.

k4

The k4 radial distortion constant in the intrinsic camera parameters defined by OpenCV.

Negative values will produce a barrel distortion, and positive values will produce a pincushion distortion.

k5

The k5 radial distortion constant in the intrinsic camera parameters defined by OpenCV.

Negative values will produce a barrel distortion, and positive values will produce a pincushion distortion.

k6

The k6 radial distortion constant in the intrinsic camera parameters defined by OpenCV.

Negative values will produce a barrel distortion, and positive values will produce a pincushion distortion.

p1

The p1 tangential distortion constant in the intrinsic camera parameters defined by OpenCV.

Positive values will give the effect that the top of the image plane is farther away than the bottom, and negative values will do the opposite.

p2

The p2 tangential distortion constant in the intrinsic camera parameters defined by OpenCV.

Positive values will give the effect that the right side of the image plane is farther away than the left side, and negative values will do the opposite.

Outputs

distorted_x

The new x coordinate in NDC with the distortion applied.

distorted_y

The new y coordinate in NDC with the distortion applied.

See also

VOP nodes