Sampling(采样)(2D)
控制 2D 捕获的颜色和像素采样。
有关如何选择这些设置的指导,请参阅 Sampling(采样)- 2D。
-
Samplingclass
Sampling settings.
Public Functions
-
Sampling()
Default constructor.
-
< Argstemplatetypename...>
Sampling(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Samplingthen invokingset(args).The provided arguments must be descendants of
Sampling. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Sampling. These types can be provided:
-
< Argstemplatetypename...>
SamplingcopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Sampling object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Sampling. These types can be provided:
-
Sampling&set( IntervalDuration&const:: value)inline
Set Interval::Duration.
-
Sampling&set( IntervalEnabled&const:: value)inline
Set Interval::Enabled.
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Sampling"
The full path for this value.
-
name={}staticconstexprconstchar* "Sampling"
The name of this value.
- static constexpr const char * description = { R"description(Samplingsettings.)description" }
The description for this value.
Friends
-
Colorclass
Choose how to sample colors for the 2D image.
rgboption gives an image with full colors.grayscaleoption gives a grayscale (r=g=b) image, which can be acquired faster than full colors.rgbStrongAmbientLightoption gives an image with full colors and reduced color noise. This option should be chosen only for applications which suffer from high color noise and with high amounts of ambient light in the scene.rgbAmbientSuppressionoption gives an image with full colors while suppressing the ambient light. The Zivid 2+R and Zivid 3 cameras suppress ambient light by default, and therefore do not need the additional optionrgbAmbientSuppression.
The
grayscale,rgbStrongAmbientLightandrgbAmbientSuppressionoptions are not available on all camera models.Public Types
Public Functions
-
Color()=default
Default constructor.
-
ValueTypevalue()const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
hasValue()constbool
Check if the value is set.
-
reset()void
Reset the node to unset state.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Sampling/Color"
The full path for this value.
-
name={}staticconstexprconstchar* "Color"
The name of this value.
- static constexpr const char * description { R"description(Choose how to sample colors for the 2D image.- `rgb` option gives an image with full colors.- `grayscale` option gives a grayscale(r=g=b) image, whichcan be acquired faster than full colors.- `rgbStrongAmbientLight` option gives an image with full colors and reduced colornoise. This option should be chosen only for applications whichsuffer from highcolornoise and with high amounts of ambient light in thescene.- `rgbAmbientSuppression` option gives an image with full colors whilesuppressing the ambient light. The Zivid 2+R and Zivid 3 cameras suppress ambientlight by default, and therefore do not need the additional option`rgbAmbientSuppression`.The `grayscale`, `rgbStrongAmbientLight` and `rgbAmbientSuppression` options are not available on all camera models.)description" }
The description for this value.
-
Intervalclass
Sampling interval controls the interval between successive sensor operations (e.g., structured light pattern projection and image exposure), aligned to external frequencies (e.g., 50 Hz, 60 Hz grid) or to other devices (e.g., barcode scanners at 100 Hz).
The requested interval is a target: the sensor operations will happen at this rate if the it can fit the chosen exposure time plus some processing overhead. Otherwise, the sampling interval is rounded up to the nearest suitable integer multiple (e.g., n * 10 ms for 100 Hz and n * 8.33 ms for 120 Hz).
Public Functions
-
Interval()
Default constructor.
-
< Argstemplatetypename...>
Interval(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Intervalthen invokingset(args).The provided arguments must be descendants of
Interval. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Interval. These types can be provided:
-
< Argstemplatetypename...>
IntervalcopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Interval object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Interval. These types can be provided:
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Sampling/Interval"
The full path for this value.
-
name={}staticconstexprconstchar* "Interval"
The name of this value.
- static constexpr const char * description {R"description(Sampling interval controls the intervalbetween successive sensor operations (e.g.,structured light pattern projection and image exposure), aligned to externalfrequencies (e.g., 50 Hz, 60 Hz grid) or to other devices (e.g., barcode scannersat 100 Hz). The requestedintervalis a target: the sensor operations will happenat this rate if the it can fit the chosen exposure time plus someprocessingoverhead.Otherwise, thesampling intervalis rounded up to the nearest suitable integer multiple(e.g., n * 10 ms for 100 Hz and n * 8.33 ms for 120 Hz).)description"}
The description for this value.
Friends
-
Durationclass
Duration between successive sensor operations, in microseconds.
The effective interval might be rounded up to the nearest suitable integer multiple and will never be shorter than exposure time plus some processing overhead.
Public Types
-
ValueType=stdchronomicrosecondsusing ::::
The type of the underlying value.
Public Functions
-
Duration()=default
Default constructor.
-
Duration(stdchronomicrosecondsvalue:::: )inlineexplicitconstexpr
Constructor.
-
stdchronomicrosecondsvalue()const::::
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
hasValue()constbool
Check if the value is set.
-
reset()void
Reset the node to unset state.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Sampling/Interval/Duration"
The full path for this value.
-
name={}staticconstexprconstchar* "Duration"
The name of this value.
- static constexpr const char * description {R"description(Duration between successive sensor operations, in microseconds. The effective intervalmight be rounded up to the nearest suitable integer multiple and will never be shorterthan exposure time plus someprocessingoverhead.)description"}
The description for this value.
-
ValueType=stdchronomicrosecondsusing ::::
-
Enabledclass
Enable or disable sampling interval.
Public Types
-
ValueType=boolusing
The type of the underlying value.
Public Functions
-
Enabled()=default
Default constructor.
-
Enabled( boolvalue)inlineexplicitconstexpr
Constructor.
-
value()constbool
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
hasValue()constbool
Check if the value is set.
-
reset()void
Reset the node to unset state.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Sampling/Interval/Enabled"
The full path for this value.
-
name={}staticconstexprconstchar* "Enabled"
The name of this value.
- static constexpr const char * description {R"description(Enable or disablesamplinginterval.)description"}
The description for this value.
-
ValueType=boolusing
-
Interval()
-
Pixelclass
Set the pixel sampling to use for the 2D capture.
This setting defines how the camera sensor is sampled. When doing 2D+3D capture, picking the same value that is used for 3D is generally recommended.
Public Types
Public Functions
-
Pixel()=default
Default constructor.
-
ValueTypevalue()const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
hasValue()constbool
Check if the value is set.
-
reset()void
Reset the node to unset state.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Sampling/Pixel"
The full path for this value.
-
name={}staticconstexprconstchar* "Pixel"
The name of this value.
- static constexpr const char * description {R"description(Set thepixel samplingto use for the 2D capture. This setting defines how the camera sensor is sampled.When doing 2D+3D capture, picking the samevaluethat is used for 3D is generally recommended.)description"}
The description for this value.
-
Pixel()=default
-
Sampling()
-
SamplingGroupstruct
Sampling settings.
Public Types
-
ColorOption:stdunderlying_typeZividSettings2DSamplingColorValueType::typeenumclass ::<::::::::>
Choose how to sample colors for the 2D image.
rgboption gives an image with full colors.grayscaleoption gives a grayscale (r=g=b) image, which can be acquired faster than full colors.rgbStrongAmbientLightoption gives an image with full colors and reduced color noise. This option should be chosen only for applications which suffer from high color noise and with high amounts of ambient light in the scene.rgbAmbientSuppressionoption gives an image with full colors while suppressing the ambient light. The Zivid 2+R and Zivid 3 cameras suppress ambient light by default, and therefore do not need the additional optionrgbAmbientSuppression.
The
grayscale,rgbStrongAmbientLightandrgbAmbientSuppressionoptions are not available on all camera models.Values:
-
Rgbenumerator
-
Grayscaleenumerator
-
RgbStrongAmbientLightenumerator
-
RgbAmbientSuppressionenumerator
-
PixelOption:stdunderlying_typeZividSettings2DSamplingPixelValueType::typeenumclass ::<::::::::>
Set the pixel sampling to use for the 2D capture.
This setting defines how the camera sensor is sampled. When doing 2D+3D capture, picking the same value that is used for 3D is generally recommended.
Values:
-
Allenumerator
-
BlueSubsample2x2enumerator
-
RedSubsample2x2enumerator
-
BlueSubsample4x4enumerator
-
RedSubsample4x4enumerator
-
By2x2enumerator
-
By4x4enumerator
-
Allenumerator
Public Functions
-
SamplingGroup()inline
Constructor.
- SamplingGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- SamplingGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
SystemNullableColorOption Color::<>
Choose how to sample colors for the 2D image.
rgboption gives an image with full colors.grayscaleoption gives a grayscale (r=g=b) image, which can be acquired faster than full colors.rgbStrongAmbientLightoption gives an image with full colors and reduced color noise. This option should be chosen only for applications which suffer from high color noise and with high amounts of ambient light in the scene.rgbAmbientSuppressionoption gives an image with full colors while suppressing the ambient light. The Zivid 2+R and Zivid 3 cameras suppress ambient light by default, and therefore do not need the additional optionrgbAmbientSuppression.
The
grayscale,rgbStrongAmbientLightandrgbAmbientSuppressionoptions are not available on all camera models.
-
SystemNullablePixelOption Pixel::<>
Set the pixel sampling to use for the 2D capture.
This setting defines how the camera sensor is sampled. When doing 2D+3D capture, picking the same value that is used for 3D is generally recommended.
-
IntervalGroupstruct
Sampling interval controls the interval between successive sensor operations (e.g., structured light pattern projection and image exposure), aligned to external frequencies (e.g., 50 Hz, 60 Hz grid) or to other devices (e.g., barcode scanners at 100 Hz).
The requested interval is a target: the sensor operations will happen at this rate if the it can fit the chosen exposure time plus some processing overhead. Otherwise, the sampling interval is rounded up to the nearest suitable integer multiple (e.g., n * 10 ms for 100 Hz and n * 8.33 ms for 120 Hz).
Public Functions
-
IntervalGroup()inline
Constructor.
- IntervalGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- IntervalGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
SystemNullable::ZividNETDuration Duration::<::::>
Duration between successive sensor operations, in microseconds.
The effective interval might be rounded up to the nearest suitable integer multiple and will never be shorter than exposure time plus some processing overhead.
-
SystemNullablebool Enabled::<>
Enable or disable sampling interval.
-
IntervalGroup()inline
-
ColorOption:stdunderlying_typeZividSettings2DSamplingColorValueType::typeenumclass ::<::::::::>
- classSampling( )
Sampling settings.
Initialization
- classInterval(:timedelta | None=Noneduration , :bool | None=Noneenabled )
Sampling interval controls the interval between successive sensor operations (e.g., structured light pattern projection and image exposure), aligned to external frequencies (e.g., 50 Hz, 60 Hz grid) or to other devices (e.g., barcode scanners at 100 Hz). The requested interval is a target: the sensor operations will happen at this rate if the it can fit the chosen exposure time plus some processing overhead. Otherwise, the sampling interval is rounded up to the nearest suitable integer multiple (e.g., n * 10 ms for 100 Hz and n * 8.33 ms for 120 Hz).
Initialization
- propertyduration
Duration between successive sensor operations, in microseconds. The effective interval might be rounded up to the nearest suitable integer multiple and will never be shorter than exposure time plus some processing overhead.
- propertyenabled
Enable or disable sampling interval.
- classColor
Choose how to sample colors for the 2D image. - rgb option gives an image with full colors. - grayscale option gives a grayscale (r=g=b) image, which can be acquired faster than full colors. - rgbStrongAmbientLight option gives an image with full colors and reduced color noise. This option should be chosen only for applications which suffer from high color noise and with high amounts of ambient light in the scene. - rgbAmbientSuppression option gives an image with full colors while suppressing the ambient light. The Zivid 2+R and Zivid 3 cameras suppress ambient light by default, and therefore do not need the additional option rgbAmbientSuppression. The grayscale, rgbStrongAmbientLight and rgbAmbientSuppression options are not available on all camera models.
- grayscale='grayscale'
- rgb='rgb'
- rgbAmbientSuppression='rgbAmbientSuppression'
- rgbStrongAmbientLight='rgbStrongAmbientLight'
- classmethodvalid_values()
All valid values of Color
- classPixel
Set the pixel sampling to use for the 2D capture. This setting defines how the camera sensor is sampled. When doing 2D+3D capture, picking the same value that is used for 3D is generally recommended.
- all='all'
- blueSubsample2x2='blueSubsample2x2'
- blueSubsample4x4='blueSubsample4x4'
- by2x2='by2x2'
- by4x4='by4x4'
- redSubsample2x2='redSubsample2x2'
- redSubsample4x4='redSubsample4x4'
- classmethodvalid_values()
All valid values of Pixel
- propertycolor
Choose how to sample colors for the 2D image. - rgb option gives an image with full colors. - grayscale option gives a grayscale (r=g=b) image, which can be acquired faster than full colors. - rgbStrongAmbientLight option gives an image with full colors and reduced color noise. This option should be chosen only for applications which suffer from high color noise and with high amounts of ambient light in the scene. - rgbAmbientSuppression option gives an image with full colors while suppressing the ambient light. The Zivid 2+R and Zivid 3 cameras suppress ambient light by default, and therefore do not need the additional option rgbAmbientSuppression. The grayscale, rgbStrongAmbientLight and rgbAmbientSuppression options are not available on all camera models.
- propertypixel
Set the pixel sampling to use for the 2D capture. This setting defines how the camera sensor is sampled. When doing 2D+3D capture, picking the same value that is used for 3D is generally recommended.
- propertyinterval
Sampling interval controls the interval between successive sensor operations (e.g., structured light pattern projection and image exposure), aligned to external frequencies (e.g., 50 Hz, 60 Hz grid) or to other devices (e.g., barcode scanners at 100 Hz). The requested interval is a target: the sensor operations will happen at this rate if the it can fit the chosen exposure time plus some processing overhead. Otherwise, the sampling interval is rounded up to the nearest suitable integer multiple (e.g., n * 10 ms for 100 Hz and n * 8.33 ms for 120 Hz).