pub struct AlignFilter { /* private fields */ }Expand description
Align filter
This filter aligns a stream (usually depth) to another stream (usually color).
Implementations§
Source§impl AlignFilter
impl AlignFilter
Sourcepub fn new() -> Result<Self, OrbbecError>
pub fn new() -> Result<Self, OrbbecError>
Create a new align filter. By default, it aligns to the color stream and resizes the aligned frame to match the target stream resolution.
Sourcepub fn set_align_to_stream_type(
&mut self,
stream_type: StreamType,
) -> Result<(), OrbbecError>
pub fn set_align_to_stream_type( &mut self, stream_type: StreamType, ) -> Result<(), OrbbecError>
Sourcepub fn set_add_distortion(&mut self, enable: bool) -> Result<(), OrbbecError>
pub fn set_add_distortion(&mut self, enable: bool) -> Result<(), OrbbecError>
Add target stream distortion to the aligned frame.
§Arguments
enable- Whether to enable distortion.
Sourcepub fn set_gap_fill(&mut self, enable: bool) -> Result<(), OrbbecError>
pub fn set_gap_fill(&mut self, enable: bool) -> Result<(), OrbbecError>
Sourcepub fn set_match_resolution(&mut self, enable: bool) -> Result<(), OrbbecError>
pub fn set_match_resolution(&mut self, enable: bool) -> Result<(), OrbbecError>
Set match resolution mode. When enabled, the aligned frame will have the same resolution as the target stream.
§Arguments
enable- Whether to enable match resolution.
Sourcepub fn set_align_to_stream_profile(
&mut self,
profile: &VideoStreamProfile,
) -> Result<(), OrbbecError>
pub fn set_align_to_stream_profile( &mut self, profile: &VideoStreamProfile, ) -> Result<(), OrbbecError>
Align to the specified stream profile. It is useful when the align target stream has not started (without any frame to get intrinsics and extrinsics).
§Arguments
profile- The video stream profile to align to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlignFilter
impl RefUnwindSafe for AlignFilter
impl !Send for AlignFilter
impl !Sync for AlignFilter
impl Unpin for AlignFilter
impl UnwindSafe for AlignFilter
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