nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
segment.hpp File Reference
#include <memory_resource>
#include <nk/value/value.hpp>

Go to the source code of this file.

Functions

Value nk::image::dice (const Value &A, const Value &B, std::pmr::memory_resource *mr=nullptr)
 Sørensen–Dice similarity coefficient (d = dice(BW1, BW2)).
Value nk::image::jaccard (const Value &A, const Value &B, std::pmr::memory_resource *mr=nullptr)
 Intersection-over-union (j = jaccard(BW1, BW2)).
Value nk::image::boundarymask (const Value &L_or_BW, int conn, std::pmr::memory_resource *mr=nullptr)
 Boundary mask of a labeled or binary image (BW = boundarymask(L, conn)).
Value nk::image::label2idx (const Value &L, std::pmr::memory_resource *mr=nullptr)
 Group label-image pixels into per-label index lists (idx = label2idx(L)).
Value nk::image::grayconnected (const Value &I, int row, int col, double tol, std::pmr::memory_resource *mr=nullptr)
 Flood-fill region from a seed pixel (BW = grayconnected(I, row, col, tol)).
Value nk::image::graydiffweight (const Value &I, double ref_gray_val, double rolloff_factor, double cutoff, std::pmr::memory_resource *mr=nullptr)
 Pixel weights from grayscale intensity difference (W = graydiffweight(I, refGrayVal [, NV...])).
Value nk::image::gradientweight (const Value &I, double sigma_x, double sigma_y, double rolloff_factor, double weight_cutoff, std::pmr::memory_resource *mr=nullptr)
 Pixel weights from image gradient magnitude (W = gradientweight(I [, sigma], 'RolloffFactor', P, 'WeightCutoff', K)).
Value nk::image::regionfill (const Value &I, const Value &mask, std::pmr::memory_resource *mr=nullptr)
 Fill image regions via inward Laplacian interpolation (J = regionfill(I, MASK)).
Value nk::image::poly2mask (const Value &X, const Value &Y, std::size_t M, std::size_t N, std::pmr::memory_resource *mr=nullptr)
 Convert polygon to binary mask (BW = poly2mask(X, Y, M, N)).
Value nk::image::reducepoly (const Value &P, double tolerance, std::pmr::memory_resource *mr=nullptr)
 Reduce point density of a polyline / polygon (P_reduced = reducepoly(P, tolerance)).
Value nk::image::roipoly (double xdata_lo, double xdata_hi, double ydata_lo, double ydata_hi, std::size_t M, std::size_t N, const Value &xi, const Value &yi, std::pmr::memory_resource *mr=nullptr)
 Polygonal region-of-interest mask (BW = roipoly(A, xi, yi), world-coord variants).
Value nk::image::graydist (const Value &I, const Value &seeds, const std::string &method, std::pmr::memory_resource *mr=nullptr)
 Gray-weighted geodesic distance transform (T = graydist(I, seeds [, method])).
Value nk::image::bwdistgeodesic (const Value &BW, const Value &seeds, const std::string &method, std::pmr::memory_resource *mr=nullptr)
 Geodesic distance transform of binary image (D = bwdistgeodesic(BW, seeds [, method])).
Value nk::image::imoverlay (const Value &I, const Value &BW, const Value &color, std::pmr::memory_resource *mr=nullptr)
 Paint a binary mask onto an image with a colour (J = imoverlay(I, BW, color)).