pub struct View<'a> { /* private fields */ }
Implementations§
Source§impl View<'_>
impl View<'_>
Sourcepub fn dimension_ranges(&self, level: u32) -> Result<DimensionsRange>
pub fn dimension_ranges(&self, level: u32) -> Result<DimensionsRange>
Returns the dimension ranges of the SubImage for a certain level For Macro and Label/ILE image this function return a result only for level 0
Sourcepub fn dimension_names(&self) -> impl Iterator<Item = &str>
pub fn dimension_names(&self) -> impl Iterator<Item = &str>
Returns the dimension names of the SubImage Example : [“x”, “y”]
Sourcepub fn dimension_units(&self) -> impl Iterator<Item = &str>
pub fn dimension_units(&self) -> impl Iterator<Item = &str>
Returns the dimension units of the SubImage Example : [“MicroMeter”, “MicroMeter”]
Sourcepub fn dimension_types(&self) -> impl Iterator<Item = &str>
pub fn dimension_types(&self) -> impl Iterator<Item = &str>
Returns the dimension types of the SubImage Example : [“spatial”, “spatial”]
Sourcepub fn scale(&self) -> &[f64]
pub fn scale(&self) -> &[f64]
Returns the scale factor, i.e. the resolution of various dimensions with with reference to the 0 level.
Sourcepub fn envelopes_as_rectangles(&self, level: u32) -> Result<Vec<Rectangle>>
pub fn envelopes_as_rectangles(&self, level: u32) -> Result<Vec<Rectangle>>
Returns envelopes coordinates as Rectangles
Sourcepub fn bits_allocated(&self) -> u16
pub fn bits_allocated(&self) -> u16
Returns the number of bit allocated per sub-pixel
Sourcepub fn bits_stored(&self) -> u16
pub fn bits_stored(&self) -> u16
Returns the number of bit really used per sub-pixel
pub fn pixel_representation(&self) -> Result<u16>
pub fn planar_configuration(&self) -> Result<u16>
Sourcepub fn samples_per_pixel(&self) -> Result<u16>
pub fn samples_per_pixel(&self) -> Result<u16>
Returns the number of sub pixel per pixel, 3 for RGB and 4 for RGBA
Sourcepub fn num_derived_levels(&self) -> u32
pub fn num_derived_levels(&self) -> u32
Returns the number of level available for a SubImage
Sourcepub fn read_region(
&self,
engine: &PhilipsEngine,
request: &RegionRequest,
) -> Result<(Vec<u8>, Size), Exception>
pub fn read_region( &self, engine: &PhilipsEngine, request: &RegionRequest, ) -> Result<(Vec<u8>, Size), Exception>
Read a tile from a WSI SubImage.
This function reads and decompresses a region of a whole slide image into an Vec<u8>
Sourcepub fn read_image(
&self,
engine: &PhilipsEngine,
request: &RegionRequest,
) -> Result<RgbImage>
pub fn read_image( &self, engine: &PhilipsEngine, request: &RegionRequest, ) -> Result<RgbImage>
Read a tile from a WSI SubImage.
This function reads and decompresses a region of a whole slide image into an RgbImage
Sourcepub fn read_thumbnail(
&self,
engine: &PhilipsEngine,
size: &Size,
) -> Result<RgbImage>
pub fn read_thumbnail( &self, engine: &PhilipsEngine, size: &Size, ) -> Result<RgbImage>
Read a thumbnail from a WSI SubImage.
This function reads and decompresses a thumbnail of a whole slide image into an RgbImage