Skip to main content

CompressedMarkerLabels

Struct CompressedMarkerLabels 

Source
pub struct CompressedMarkerLabels<'a> {
    pub labels: ImagePipeline<'a, u32, C1>,
    pub new_max_label_id: u32,
}

Fields§

§labels: ImagePipeline<'a, u32, C1>§new_max_label_id: u32

Implementations§

Source§

impl<'a> CompressedMarkerLabels<'a>

Source

pub fn info_list_size(&self) -> Result<usize>

Source

pub fn geometry_lists_size( max_contour_pixel_geometry_info_count: u32, ) -> Result<usize>

Source

pub fn contours_block_segment_list_size( contours_pixel_counts_list_host: &mut [u32], total_image_pixel_contour_count: u32, compressed_label_count: u32, first_contour_geometry_list_id: u32, last_contour_geometry_list_id: u32, ) -> Result<usize>

Source

pub fn info_into( &self, marker_labels_info_list: &mut DeviceMemory<CompressedMarkerLabelsInfo>, contours_image: &mut ImageViewMut<'_, u8, C1>, contours_direction_image: &mut ImageViewMut<'_, ContourPixelDirectionInfo, C1>, contours_pixel_counts_list_dev: &mut DeviceMemory<u32>, contours_pixel_counts_list_host: &mut [u32], contours_pixel_starting_offset_dev: &mut DeviceMemory<u32>, contours_pixel_starting_offset_host: &mut [u32], ) -> Result<ContourTotalsInfo>

Source

pub fn generate_contour_geometry_lists_into( &self, marker_labels_info_list_dev: &mut DeviceMemory<CompressedMarkerLabelsInfo>, marker_labels_info_list_host: &mut [CompressedMarkerLabelsInfo], contours_direction_image_dev: &mut ImageViewMut<'_, ContourPixelDirectionInfo, C1>, contours_pixel_geometry_lists_dev: &mut DeviceMemory<ContourPixelGeometryInfo>, contours_pixel_geometry_lists_host: &mut [ContourPixelGeometryInfo], contours_geometry_image_host: &mut [u8], contours_geometry_image_step: i32, contours_pixel_counts_list_dev: &mut DeviceMemory<u32>, contours_pixels_found_list_dev: &mut DeviceMemory<u32>, contours_pixels_found_list_host: &mut [u32], contours_pixels_starting_offset_dev: &mut DeviceMemory<u32>, contours_pixels_starting_offset_host: &mut [u32], total_image_pixel_contour_count: u32, first_contour_geometry_list_id: u32, last_contour_geometry_list_id: u32, contours_block_segment_list_dev: &mut DeviceMemory<ContourBlockSegment>, contours_block_segment_list_host: &mut [ContourBlockSegment], output_in_counterclockwise_order: bool, ) -> Result<()>

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.