#include <memory_resource>#include <nk/value/value.hpp>#include <string>#include <tuple>#include <vector>Go to the source code of this file.
Functions | |
| std::tuple< Value, Value > | nk::image::bwlabel (const Value &BW, int conn, std::pmr::memory_resource *mr=nullptr) |
| Connected-component labelling ([L, num] = bwlabel(BW, conn)). | |
| Value | nk::image::bwconncomp (const Value &BW, int conn, std::pmr::memory_resource *mr=nullptr) |
| Connected-component struct (CC = bwconncomp(BW, conn)). | |
| Value | nk::image::labelmatrix (const Value &CC, std::pmr::memory_resource *mr=nullptr) |
| Connected-component label matrix (L = labelmatrix(CC)). | |
| Value | nk::image::cc2bw (const Value &CC, const Value &objects_to_keep, std::pmr::memory_resource *mr=nullptr) |
| Reconstruct binary image from a bwconncomp struct (BW = cc2bw(CC, ...)). | |
| Value | nk::image::bwpropfilt (const Value &BW, const Value &CC, const Value &marker, const std::string &attribute, double p_min, double p_max, std::size_t keep_n, bool keep_largest, int conn, std::pmr::memory_resource *mr=nullptr) |
| Filter connected components by attribute value (BW2 = bwpropfilt(BW, attrib, range_or_n, ...)). | |
| Value | nk::image::bwarea (const Value &BW, std::pmr::memory_resource *mr=nullptr) |
| Total foreground area (A = bwarea(BW)). | |
| Value | nk::image::bwperim (const Value &BW, int conn, std::pmr::memory_resource *mr=nullptr) |
| Perimeter mask (BW2 = bwperim(BW, conn)). | |
| Value | nk::image::bwareaopen (const Value &BW, int P, int conn, std::pmr::memory_resource *mr=nullptr) |
| Remove small components (BW2 = bwareaopen(BW, P, conn)). | |
| Value | nk::image::bwboundaries (const Value &BW, int conn, Value *Lout=nullptr, int *Nout=nullptr, std::pmr::memory_resource *mr=nullptr) |
| Trace boundary contours (B = bwboundaries(BW, conn)). | |
| Value | nk::image::regionprops (const Value &BW_or_L, const std::vector< std::string > &props, const Value &intensity, std::pmr::memory_resource *mr=nullptr) |
| Per-region descriptors (S = regionprops(BW_or_L, props)). | |
| Value | nk::image::bwdist (const Value &BW, std::pmr::memory_resource *mr=nullptr) |
| Euclidean distance transform (D = bwdist(BW)). | |
| Value | nk::image::roicolor (const Value &A, const Value &low_or_v, double high, bool is_range, std::pmr::memory_resource *mr=nullptr) |
| Region-of-interest mask (BW = roicolor(A, low, high)). | |
| Value | nk::image::fchcode (const Value &bound, std::pmr::memory_resource *mr=nullptr) |
| Freeman 8-direction chain code (fcc = fchcode(bound)). | |
| Value | nk::image::bweuler (const Value &BW, int conn, std::pmr::memory_resource *mr=nullptr) |
| Euler number objects − holes (E = bweuler(BW, conn)). | |
| Value | nk::image::bwareafilt (const Value &BW, double lo, double hi, size_t n_keep, bool keep_largest, int conn, std::pmr::memory_resource *mr=nullptr) |
| Filter connected components by area (BW2 = bwareafilt(...)). | |
| std::tuple< Value, Value > | nk::image::bwselect (const Value &BW, const Value &cols, const Value &rows, int conn, std::pmr::memory_resource *mr=nullptr) |
| Select components by seed pixels ([BW2, idx] = bwselect(BW, cols, rows, conn)). | |