Package boofcv.struct.calib
Class CameraModel
java.lang.Object
boofcv.struct.calib.CameraModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CameraPinhole
Common class for camera models
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <T extends CameraModel>
TCreates a new camera model with zero values of the same type os this onegetDimension(@Nullable ImageDimension dimension) intintgetWidth()booleanisSameShape(int width, int height) booleanisSameShape(ImageBase<?> image) voidprint()Prints a summary of this model to stdoutvoidsetHeight(int height) voidsetWidth(int width)
-
Field Details
-
width
public int widthimage shape (units: pixels) -
height
public int heightimage shape (units: pixels)
-
-
Constructor Details
-
CameraModel
public CameraModel()
-
-
Method Details
-
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getDimension
-
isSameShape
-
isSameShape
public boolean isSameShape(int width, int height) -
createLike
Creates a new camera model with zero values of the same type os this one -
print
public void print()Prints a summary of this model to stdout
-