MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Gradient.hpp File Reference

Gradient and edge detection on normalised float image spans. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Kinesis::Vision::GradientResult
 Gradient maps produced by Sobel and Scharr operators. More...
 

Namespaces

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

Functions

void MayaFlux::Kinesis::Vision::canny (std::span< const float > gray, std::span< float > dst, uint32_t w, uint32_t h, float sigma, float low_threshold, float high_threshold)
 Canny edge detector writing into a caller-supplied buffer.
 
std::vector< float > MayaFlux::Kinesis::Vision::canny (std::span< const float > gray, uint32_t w, uint32_t h, float sigma, float low_threshold, float high_threshold)
 Canny edge detector.
 
void MayaFlux::Kinesis::Vision::scharr (std::span< const float > gray, std::span< float > dx, std::span< float > dy, std::span< float > tmp, uint32_t w, uint32_t h)
 Scharr gradient writing dx and dy into caller-supplied buffers.
 
GradientResult MayaFlux::Kinesis::Vision::scharr (std::span< const float > gray, uint32_t w, uint32_t h)
 Scharr gradient operator.
 
void MayaFlux::Kinesis::Vision::sobel (std::span< const float > gray, std::span< float > dx, std::span< float > dy, std::span< float > tmp, uint32_t w, uint32_t h)
 Sobel gradient writing dx and dy into caller-supplied buffers.
 
GradientResult MayaFlux::Kinesis::Vision::sobel (std::span< const float > gray, uint32_t w, uint32_t h)
 Sobel gradient operator.
 

Detailed Description

Gradient and edge detection on normalised float image spans.

Pure functions. No MayaFlux type dependencies.

Conventions

  • All inputs are single-channel normalised float in [0, 1]
  • w and h are pixel dimensions; caller ensures span size == w * h
  • Border handling is clamp-to-edge throughout
  • Gradient angle is in radians in [-pi, pi], measured from +X axis
  • Parallelism handled internally via Parallel::par_unseq

Definition in file Gradient.hpp.