pub struct GazeProperties { /* private fields */ }Expand description
Properties defining the center region of a segmented vision frame
This structure defines the coordinates and size of the central region in a normalized coordinate space (0.0 to 1.0).
Implementations§
Source§impl GazeProperties
impl GazeProperties
pub fn new( eccentricity_center_xy: Percentage2D, modularity_size: Percentage, ) -> GazeProperties
pub fn new_from_3d(percentage3d: Percentage3D) -> GazeProperties
Sourcepub fn create_default_centered() -> GazeProperties
pub fn create_default_centered() -> GazeProperties
Creates a default centered SegmentedFrameCenterProperties.
This convenience method creates center properties with the center region positioned at the middle of the image with a moderate size.
§Returns
A SegmentedFrameCenterProperties with default centered configuration.
pub fn calculate_source_corner_points_for_segmented_video_frame( &self, source_frame_resolution: ImageXYResolution, destination_segmented_center_cortical_dimensions: CorticalAreaDimensions, ) -> Result<[CornerPoints; 9], FeagiDataError>
Trait Implementations§
Source§impl Clone for GazeProperties
impl Clone for GazeProperties
Source§fn clone(&self) -> GazeProperties
fn clone(&self) -> GazeProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GazeProperties
impl Debug for GazeProperties
Source§impl<'de> Deserialize<'de> for GazeProperties
impl<'de> Deserialize<'de> for GazeProperties
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GazeProperties, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GazeProperties, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GazeProperties
impl Display for GazeProperties
Source§impl From<GazeProperties> for WrappedIOData
impl From<GazeProperties> for WrappedIOData
Source§fn from(value: GazeProperties) -> WrappedIOData
fn from(value: GazeProperties) -> WrappedIOData
Converts to this type from the input type.
Source§impl PartialEq for GazeProperties
impl PartialEq for GazeProperties
Source§impl Serialize for GazeProperties
impl Serialize for GazeProperties
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<'a> TryFrom<&'a WrappedIOData> for &'a GazeProperties
impl<'a> TryFrom<&'a WrappedIOData> for &'a GazeProperties
Source§type Error = FeagiDataError
type Error = FeagiDataError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'a WrappedIOData,
) -> Result<&'a GazeProperties, <&'a GazeProperties as TryFrom<&'a WrappedIOData>>::Error>
fn try_from( value: &'a WrappedIOData, ) -> Result<&'a GazeProperties, <&'a GazeProperties as TryFrom<&'a WrappedIOData>>::Error>
Performs the conversion.
Source§impl TryFrom<&WrappedIOData> for GazeProperties
impl TryFrom<&WrappedIOData> for GazeProperties
Source§type Error = FeagiDataError
type Error = FeagiDataError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &WrappedIOData,
) -> Result<GazeProperties, <GazeProperties as TryFrom<&WrappedIOData>>::Error>
fn try_from( value: &WrappedIOData, ) -> Result<GazeProperties, <GazeProperties as TryFrom<&WrappedIOData>>::Error>
Performs the conversion.
Source§impl<'a> TryFrom<&'a mut WrappedIOData> for &'a mut GazeProperties
impl<'a> TryFrom<&'a mut WrappedIOData> for &'a mut GazeProperties
Source§type Error = FeagiDataError
type Error = FeagiDataError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'a mut WrappedIOData,
) -> Result<&'a mut GazeProperties, <&'a mut GazeProperties as TryFrom<&'a mut WrappedIOData>>::Error>
fn try_from( value: &'a mut WrappedIOData, ) -> Result<&'a mut GazeProperties, <&'a mut GazeProperties as TryFrom<&'a mut WrappedIOData>>::Error>
Performs the conversion.
Source§impl TryFrom<WrappedIOData> for GazeProperties
impl TryFrom<WrappedIOData> for GazeProperties
Source§type Error = FeagiDataError
type Error = FeagiDataError
The type returned in the event of a conversion error.
Source§fn try_from(
value: WrappedIOData,
) -> Result<GazeProperties, <GazeProperties as TryFrom<WrappedIOData>>::Error>
fn try_from( value: WrappedIOData, ) -> Result<GazeProperties, <GazeProperties as TryFrom<WrappedIOData>>::Error>
Performs the conversion.
impl Copy for GazeProperties
impl StructuralPartialEq for GazeProperties
Auto Trait Implementations§
impl Freeze for GazeProperties
impl RefUnwindSafe for GazeProperties
impl Send for GazeProperties
impl Sync for GazeProperties
impl Unpin for GazeProperties
impl UnwindSafe for GazeProperties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.