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
name: String
The name of the scan position.
images: HashMap<String, Image>
The scan position images.
sop: Projective3<f64>
The scanner's own position.
scans: HashMap<String, Scan>
The scans taken at this position.
Methods
impl ScanPosition
[src]
fn image_from_path<P: AsRef<Path>>(&self, path: P) -> Result<&Image>
[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);
fn singlescan_rxp_paths(&self, project: &Project) -> Vec<PathBuf>
[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]
fn clone(&self) -> ScanPosition
[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
impl Debug for ScanPosition
[src]
impl PartialEq for ScanPosition
[src]
fn eq(&self, __arg_0: &ScanPosition) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ScanPosition) -> bool
[src]
This method tests for !=
.