lensfun  0.3.95.0
lfLensCalibCrop Struct Reference

Struct to save image crop, which can depend on the focal length. More...

#include <lensfun.h>

## Public Attributes

float Focal
Focal length in mm at which this calibration data was taken.

enum lfCropMode CropMode
crop mode which should be applied to image to get rid of black borders

float Crop [4]
Crop coordinates, relative to image corresponding image dimension. More...

lfLensCalibAttributes CalibAttr
Pointer to the calibration settings (currently unused).

## Detailed Description

Struct to save image crop, which can depend on the focal length.

## ◆ Crop

 float lfLensCalibCrop::Crop[4]

Crop coordinates, relative to image corresponding image dimension.

Crop goes left - 0, right - 1, top - 2, bottom - 3 Left/right refers always to long side (width in landscape mode), top bottom to short side (height in landscape). Also negative values are allowed for cropping of fisheye images, where the crop circle can extend above the image border.

The documentation for this struct was generated from the following file: