IDS peak ICV v1.6.0
Loading...
Searching...
No Matches
Threshold< IntervalType > Class Template Reference

#include <peak_icv/algorithms/thresholds/peak_icv_threshold.hpp>

Public Member Functions

 Threshold (const IntervalType &interval)
 Creates an instance of class Threshold.
 
 Threshold (typename IntervalType::type minimum, typename IntervalType::type maximum)
 Creates an instance of class Threshold.
 
peak::icv::Region Process (const Image &image) const
 Applies a threshold on a given single-channel image and returns a region with selected pixels whose gray values are in the range Interval.minimum <= gray value <= Interval.maximum.
 

Static Public Member Functions

static IntervalType GetRange (const Image &image)
 Queries the minimum and maximum value of a given image and provides it as an interval.
 

Detailed Description

template<typename IntervalType>
class peak::icv::detail::Threshold< IntervalType >

Class for thresholding an image.

Template Parameters
Intervalshall only be interval types
Since
ids_peak_icv 1.1

Constructor & Destructor Documentation

◆ Threshold() [1/2]

template<typename IntervalType >
Threshold ( const IntervalType & interval)
explicit

Creates an instance of class Threshold.

Parameters
[in]intervalInterval with lower and upper threshold value.
Since
ids_peak_icv 1.1

◆ Threshold() [2/2]

template<typename IntervalType >
Threshold ( typename IntervalType::type minimum,
typename IntervalType::type maximum )
explicit

Creates an instance of class Threshold.

Parameters
[in]minimumLower threshold value.
[in]maximumUpper threshold value.
Since
ids_peak_icv 1.1

Member Function Documentation

◆ GetRange()

template<typename IntervalType >
IntervalType GetRange ( const Image & image)
static

Queries the minimum and maximum value of a given image and provides it as an interval.

Parameters
[in]imageThis is the image for which the range is calculated.
Returns
Returns the maximum possible range of the given image.
Since
ids_peak_icv 1.1

◆ Process()

template<typename IntervalType >
peak::icv::Region Process ( const Image & image) const

Applies a threshold on a given single-channel image and returns a region with selected pixels whose gray values are in the range Interval.minimum <= gray value <= Interval.maximum.

Parameters
[in]imageImage to threshold
Supported pixel formats
  • BayerGR8
  • BayerGR10
  • BayerGR12
  • BayerRG8
  • BayerRG10
  • BayerRG12
  • BayerGB8
  • BayerGB10
  • BayerGB12
  • BayerBG8
  • BayerBG10
  • BayerBG12
  • Mono8
  • Mono10
  • Mono12
  • Mono16
  • Confidence8
  • Confidence16
  • Coord3D_C8
  • Coord3D_C16
  • Coord3D_C32f
  • Mono32fIDS
  • Mono32f
  • Mono8_I_A_B
  • BayerRG8_I_A_B
  • BayerBG8_I_A_B
  • BayerGR8_I_A_B
  • BayerGB8_I_A_B
  • Mono10_I_A_B
  • BayerRG10_I_A_B
  • BayerBG10_I_A_B
  • BayerGR10_I_A_B
  • BayerGB10_I_A_B
  • Mono12_I_A_B
  • BayerRG12_I_A_B
  • BayerBG12_I_A_B
  • BayerGR12_I_A_B
  • BayerGB12_I_A_B
  • Mono8_I_AB_CD
  • Mono10_I_AB_CD
  • Mono12_I_AB_CD

See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.

Returns
Returns a region with selected pixels.
Exceptions
OutOfRangeExceptionIf the interval is out of bounds for the pixel format.
NotPossibleExceptionIf the image is too big for processing.
Since
ids_peak_icv 1.1