View

Struct View 

Source
pub struct View<'a> { /* private fields */ }

Implementations§

Source§

impl View<'_>

Source

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

Source

pub fn dimension_names(&self) -> impl Iterator<Item = &str>

Returns the dimension names of the SubImage Example : [“x”, “y”]

Source

pub fn dimension_units(&self) -> impl Iterator<Item = &str>

Returns the dimension units of the SubImage Example : [“MicroMeter”, “MicroMeter”]

Source

pub fn dimension_types(&self) -> impl Iterator<Item = &str>

Returns the dimension types of the SubImage Example : [“spatial”, “spatial”]

Source

pub fn scale(&self) -> &[f64]

Returns the scale factor, i.e. the resolution of various dimensions with with reference to the 0 level.

Source

pub fn origin(&self) -> &[f64]

Returns the origin of the Label/ILE SubImage.

Source

pub fn envelopes_as_rectangles(&self, level: u32) -> Result<Vec<Rectangle>>

Returns envelopes coordinates as Rectangles

Source

pub fn bits_allocated(&self) -> u16

Returns the number of bit allocated per sub-pixel

Source

pub fn bits_stored(&self) -> u16

Returns the number of bit really used per sub-pixel

Source

pub fn high_bit(&self) -> u16

Returns the highest bit

Source

pub fn pixel_representation(&self) -> Result<u16>

Source

pub fn planar_configuration(&self) -> Result<u16>

Source

pub fn samples_per_pixel(&self) -> Result<u16>

Returns the number of sub pixel per pixel, 3 for RGB and 4 for RGBA

Source

pub fn num_derived_levels(&self) -> u32

Returns the number of level available for a SubImage

Source

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>

Source

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

Source

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

Source

pub fn get_best_level_for_dimensions( &self, dimension: &Size, dimension_level_0: &Size, level_count: u32, ) -> u32

Auto Trait Implementations§

§

impl<'a> Freeze for View<'a>

§

impl<'a> RefUnwindSafe for View<'a>

§

impl<'a> Send for View<'a>

§

impl<'a> !Sync for View<'a>

§

impl<'a> Unpin for View<'a>

§

impl<'a> UnwindSafe for View<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V