Struct riscan_pro::Project [] [src]

pub struct Project {
    pub path: PathBuf,
    pub camera_calibrations: HashMap<String, CameraCalibration>,
    pub mount_calibrations: HashMap<String, MountCalibration>,
    pub scan_positions: HashMap<String, ScanPosition>,
    pub pop: Projective3<f64>,
}

A RiSCAN Pro project.

These are always created by pointing at a path, either the .RiSCAN path or the project.rsp in that directory:

use riscan_pro::Project;
let project1 = Project::from_path("data/project.RiSCAN").unwrap();
let project2 = Project::from_path("data/project.RiSCAN/project.rsp").unwrap();
assert_eq!(project1, project2);

Fields

The path to the project rsp file.

The camera calibrations, by name.

The camera mount calibrations, by name.

The scan positions, by name.

The project's own position.

Methods

impl Project
[src]

[src]

Creates a project from a filesystem path.

This path can be either the .RiSCAN directory or the contained project.rsp.

Examples

use riscan_pro::Project;
let project = Project::from_path("data/project.RiSCAN").unwrap();

[src]

Returns a scan position, as determined by the path.

Examples

use riscan_pro::Project;
let project = Project::from_path("data/project.RiSCAN").unwrap();
let scan_position1 = project.scan_positions.get("SP01").unwrap();
let path = "data/project.RiSCAN/SCANS/SP01/SCANPOSIMAGES/SP01 - Image001.csv";
let scan_position2 = project.scan_position_from_path(path).unwrap();
assert_eq!(scan_position1, scan_position2);

Trait Implementations

impl Clone for Project
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Project
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Project
[src]

[src]

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

[src]

This method tests for !=.