Struct riscan_pro::scan_position::ScanPosition [] [src]

pub struct ScanPosition {
    pub name: String,
    pub images: HashMap<String, Image>,
    pub sop: Projective3<f64>,
    pub scans: HashMap<String, Scan>,
}

A scan position

Fields

The name of the scan position.

The scan position images.

The scanner's own position.

The scans taken at this position.

Methods

impl ScanPosition
[src]

[src]

Returns a scan position image, as determined by the path.

Examples

use riscan_pro::Project;
let project = Project::from_path("data/project.RiSCAN").unwrap();
let scan_position = project.scan_positions.get("SP01").unwrap();
let image1 = scan_position.images.get("SP01 - Image001").unwrap();
let path = "data/project.RiSCAN/SCANS/SP01/SCANPOSIMAGES/SP01 - Image001.csv";
let image2 = scan_position.image_from_path(path).unwrap();
assert_eq!(image1, image2);

[src]

Returns a vector of all paths to rxps in the singlescan directory.

Examples

use riscan_pro::Project;
let project = Project::from_path("data/project.RiSCAN").unwrap();
let scan_position = project
    .scan_positions
    .get("SP01")
    .unwrap();
let paths = scan_position.singlescan_rxp_paths(&project);
assert_eq!(4, paths.len());

Trait Implementations

impl Clone for ScanPosition
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ScanPosition
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ScanPosition
[src]

[src]

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

[src]

This method tests for !=.