Package org.jvision
Class JVisionUtil
java.lang.Object
org.jvision.JVisionUtil
This class involves various utilities related to computer vision.
- Since:
- 1.0.0
- Version:
- "1.0.0" b202104211400L
- Author:
- Julien Seinturier - JOrigin - contact@jorigin.org - https://github.com/jorigin/jvision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Dimension2DdgetSensorDimension(double format, double ratio)Get the dimension of a sensor frame in millimeters (mm) from a dimension expressed as a fraction of an inch (1/3, 1/4, ...) and an aspect ratio.
-
Constructor Details
-
JVisionUtil
public JVisionUtil()
-
-
Method Details
-
getSensorDimension
Get the dimension of a sensor frame in millimeters (mm) from a dimension expressed as a fraction of an inch (1/3, 1/4, ...) and an aspect ratio. If the ratio is not known, standard ratio can be used such as 4/3 for compact cameras / video recorders or 3/2 for professional cameras. Please be warned that the aspect ratio has to be given in double format (4.0d/3.0d).- Parameters:
format- the format expressed as a fraction of an inch.ratio- the ratio of the width / height of the sensor (3/2, 4/3, ...).- Returns:
- the dimension in millimeters of the sensor.
-