MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
PixelOps.cpp File Reference
#include "PixelOps.hpp"
#include "MayaFlux/Transitive/Parallel/Execution.hpp"
#include <Eigen/Core>
+ Include dependency graph for PixelOps.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Kinesis
 
namespace  MayaFlux::Kinesis::Vision
 

Functions

void MayaFlux::Kinesis::Vision::downsample_2x (std::span< const float > src, std::span< float > dst, uint32_t w, uint32_t h, uint32_t &new_w, uint32_t &new_h)
 2x box-filter downsample writing into a caller-supplied buffer.
 
void MayaFlux::Kinesis::Vision::downsample_2x (std::span< const float > src, std::span< float > dst, uint32_t w, uint32_t h, uint32_t channels, uint32_t &new_w, uint32_t &new_h)
 2x box-filter downsample for multi-channel interleaved data.
 
std::vector< float > MayaFlux::Kinesis::Vision::downsample_2x (std::span< const float > src, uint32_t w, uint32_t h, uint32_t &new_w, uint32_t &new_h)
 2x box-filter downsample.
 
void MayaFlux::Kinesis::Vision::gray_to_rgba (std::span< const float > gray, std::span< float > dst, uint32_t w, uint32_t h)
 Global threshold writing into caller-supplied buffer.
 
std::vector< float > MayaFlux::Kinesis::Vision::gray_to_rgba (std::span< const float > gray, uint32_t w, uint32_t h)
 Convert single-channel gray to RGBA.
 
void MayaFlux::Kinesis::Vision::normalize_inplace (std::span< float > data)
 Stretch values to fill [0, 1] using the span's observed min and max.
 
void MayaFlux::Kinesis::Vision::normalize_range_inplace (std::span< float > data, float lo, float hi)
 Clamp and remap values from [lo, hi] to [0, 1] in-place.
 
void MayaFlux::Kinesis::Vision::rgba_to_gray (std::span< const float > rgba, std::span< float > dst, uint32_t w, uint32_t h)
 Convert RGBA to luminance gray using BT.601 coefficients.
 
std::vector< float > MayaFlux::Kinesis::Vision::rgba_to_gray (std::span< const float > rgba, uint32_t w, uint32_t h)
 Convert RGBA to luminance gray using BT.601 coefficients.
 
void MayaFlux::Kinesis::Vision::rgba_to_hsv (std::span< const float > rgba, std::span< float > dst, uint32_t w, uint32_t h)
 Convert RGBA to HSV writing into caller-supplied buffer.
 
std::vector< float > MayaFlux::Kinesis::Vision::rgba_to_hsv (std::span< const float > rgba, uint32_t w, uint32_t h)
 Convert RGBA to HSV.
 
std::vector< float > MayaFlux::Kinesis::Vision::threshold (std::span< const float > gray, float value)
 Global threshold: output is 1.0f where input >= value, else 0.0f.
 
void MayaFlux::Kinesis::Vision::threshold (std::span< const float > gray, std::span< float > dst, float value)
 Global threshold writing into caller-supplied buffer.
 
void MayaFlux::Kinesis::Vision::threshold_adaptive (std::span< const float > gray, std::span< float > dst, uint32_t w, uint32_t h, uint32_t block_size, float offset)
 Adaptive threshold writing into caller-supplied buffer.
 
std::vector< float > MayaFlux::Kinesis::Vision::threshold_adaptive (std::span< const float > gray, uint32_t w, uint32_t h, uint32_t block_size, float offset)
 Adaptive threshold using local block mean minus offset.
 
std::vector< float > MayaFlux::Kinesis::Vision::threshold_otsu (std::span< const float > gray)
 Otsu threshold: finds the optimal global threshold by maximising inter-class variance, then applies it.
 
void MayaFlux::Kinesis::Vision::threshold_otsu (std::span< const float > gray, std::span< float > dst)
 Otsu threshold writing into caller-supplied buffer.