MayaFlux 0.5.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 346 of file PixelOps.cpp.

347{
348 std::vector<float> out(gray.size());
349 threshold_otsu(gray, out);
350 return out;
351}
void threshold_otsu(std::span< const float > gray, std::span< float > dst)
Otsu threshold writing into caller-supplied buffer.
Definition PixelOps.cpp:299

References threshold_otsu().

+ Here is the call graph for this function: