Struct riscan_pro::scan_position::Image
[−]
[src]
pub struct Image { pub name: String, pub cop: Projective3<f64>, pub camera_calibration_name: String, pub mount_calibration_name: String, }
A scan position image.
Fields
name: String
The name of the image.
cop: Projective3<f64>
The camera's own position when taking the image.
camera_calibration_name: String
The name of the image's camera calibration.
mount_calibration_name: String
The name of the image's mount calibration.
Methods
impl Image
[src]
fn camera_calibration<'a>(
&self,
project: &'a Project
) -> Result<&'a CameraCalibration>
[src]
&self,
project: &'a Project
) -> Result<&'a CameraCalibration>
Finds and returns this image's camera calibration.
Examples
use riscan_pro::Project; let project = Project::from_path("data/project.RiSCAN").unwrap(); let mut image = project.scan_positions .get("SP01") .unwrap() .images .get("SP01 - Image001") .unwrap() .clone(); image.camera_calibration(&project).unwrap(); image.camera_calibration_name = "Not a camera calibration".to_string(); assert!(image.camera_calibration(&project).is_err());
fn mount_calibration<'a>(
&self,
project: &'a Project
) -> Result<&'a MountCalibration>
[src]
&self,
project: &'a Project
) -> Result<&'a MountCalibration>
Finds and returns this image's mount calibration.
Examples
use riscan_pro::Project; let project = Project::from_path("data/project.RiSCAN").unwrap(); let mut image = project.scan_positions .get("SP01") .unwrap() .images .get("SP01 - Image001") .unwrap() .clone(); image.mount_calibration(&project).unwrap(); image.mount_calibration_name = "Not a mount calibration".to_string(); assert!(image.mount_calibration(&project).is_err());
Trait Implementations
impl Clone for Image
[src]
fn clone(&self) -> Image
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more