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

The name of the image.

The camera's own position when taking the image.

The name of the image's camera calibration.

The name of the image's mount calibration.

Methods

impl Image
[src]

[src]

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());

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Image
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Image
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.