IRON 1a5eed49d3c0721a318ac369f725acc96b7c4584
Loading...
Searching...
No Matches
Functions
iron.kernels.vision Namespace Reference

Functions

ExternalFunction _color_convert_kernel (str func_name, str filename, int in_size, int out_size, bool use_chess=False)
 
ExternalFunction _bitwise_kernel (str op, int line_width, dtype, bool use_chess=False)
 
ExternalFunction rgba2hue (int line_width=1920, bool use_chess=False)
 
ExternalFunction threshold (int line_width=1920, dtype=np.uint8, bool use_chess=False)
 
ExternalFunction bitwise_or (int line_width=1920, dtype=np.uint8, bool use_chess=False)
 
ExternalFunction bitwise_and (int line_width=1920, dtype=np.uint8, bool use_chess=False)
 
ExternalFunction gray2rgba (int line_width=1920, bool use_chess=False)
 
ExternalFunction rgba2gray (int line_width=1920, bool use_chess=False)
 
ExternalFunction filter2d (int line_width=1920, bool use_chess=False)
 
ExternalFunction add_weighted (int line_width=1920, dtype=np.uint8, bool use_chess=False)
 

Detailed Description

Vision kernel factories: color conversion, threshold, filter2d, add_weighted.

Function Documentation

◆ _bitwise_kernel()

ExternalFunction iron.kernels.vision._bitwise_kernel ( str  op,
int  line_width,
  dtype,
bool   use_chess = False 
)
protected
Shared implementation for :func:`bitwise_or` and :func:`bitwise_and`.

◆ _color_convert_kernel()

ExternalFunction iron.kernels.vision._color_convert_kernel ( str  func_name,
str  filename,
int  in_size,
int  out_size,
bool   use_chess = False 
)
protected
Shared implementation for color-space conversion line kernels.

◆ add_weighted()

ExternalFunction iron.kernels.vision.add_weighted ( int   line_width = 1920,
  dtype = np.uint8,
bool   use_chess = False 
)
Weighted addition of two lines with a gamma offset.

Args:
    line_width: Number of elements per line.
    dtype: Element data type (``np.uint8``, ``np.int16``, or ``np.int32``).
    use_chess: When ``True``, build the .o with ``xchesscc_wrapper``
        instead of Peano.

Raises:
    ValueError: When ``dtype`` is not ``np.uint8``, ``np.int16``, or ``np.int32``.

◆ bitwise_and()

ExternalFunction iron.kernels.vision.bitwise_and ( int   line_width = 1920,
  dtype = np.uint8,
bool   use_chess = False 
)
Element-wise bitwise AND of two lines.

◆ bitwise_or()

ExternalFunction iron.kernels.vision.bitwise_or ( int   line_width = 1920,
  dtype = np.uint8,
bool   use_chess = False 
)
Element-wise bitwise OR of two lines.

◆ filter2d()

ExternalFunction iron.kernels.vision.filter2d ( int   line_width = 1920,
bool   use_chess = False 
)
Applies a 3x3 2D convolution filter across three input lines.

◆ gray2rgba()

ExternalFunction iron.kernels.vision.gray2rgba ( int   line_width = 1920,
bool   use_chess = False 
)
Converts a grayscale line to RGBA.

◆ rgba2gray()

ExternalFunction iron.kernels.vision.rgba2gray ( int   line_width = 1920,
bool   use_chess = False 
)
Converts an RGBA line to grayscale.

◆ rgba2hue()

ExternalFunction iron.kernels.vision.rgba2hue ( int   line_width = 1920,
bool   use_chess = False 
)
Converts a line of RGBA pixels to hue values.

◆ threshold()

ExternalFunction iron.kernels.vision.threshold ( int   line_width = 1920,
  dtype = np.uint8,
bool   use_chess = False 
)
Applies a threshold operation to a line of pixels.

Args:
    line_width: Number of elements per line.
    dtype: Element data type (``np.uint8``, ``np.int16``, or ``np.int32``).
    use_chess: When ``True``, build the .o with ``xchesscc_wrapper``
        instead of Peano.

Raises:
    ValueError: When ``dtype`` is not ``np.uint8``, ``np.int16``, or ``np.int32``.