MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ threshold_otsu() [1/2]

MAYAFLUX_API 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.

Parameters
graySingle-channel float span, size must be w * h.
Returns
Binary float vector of length w * h.

Definition at line 326 of file PixelOps.cpp.

327{
328 std::vector<float> out(gray.size());
329 threshold_otsu(gray, out);
330 return out;
331}
std::vector< float > * out
void threshold_otsu(std::span< const float > gray, std::span< float > dst)
Otsu threshold writing into caller-supplied buffer.
Definition PixelOps.cpp:279

References out, and threshold_otsu().

+ Here is the call graph for this function: