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

Go to the source code of this file.

Functions

Value nk::image::imresize (const Value &A, double scale, const std::string &method, std::pmr::memory_resource *mr=nullptr)
 Resample an image to a new size by a uniform scale factor (B = imresize(A, scale, method)).
Value nk::image::imresize (const Value &A, size_t outH, size_t outW, const std::string &method, std::pmr::memory_resource *mr=nullptr)
 Resample an image to an explicit output size (B = imresize(A, [outH outW], method)).
Value nk::image::imcrop (const Value &A, double xmin, double ymin, double width, double height, std::pmr::memory_resource *mr=nullptr)
 Crop a rectangular region (B = imcrop(A, [xmin ymin width height])).
Value nk::image::imcrop3 (const Value &V, const Value &cuboid, std::pmr::memory_resource *mr=nullptr)
 Crop a 3-D image volume (VOUT = imcrop3(V, cuboid)).
Value nk::image::imrotate (const Value &A, double angle, const std::string &method, const std::string &bbox, std::pmr::memory_resource *mr=nullptr)
 Rotate an image counter-clockwise (B = imrotate(A, angle, method, bbox)).
Value nk::image::imtranslate (const Value &A, double dx, double dy, std::pmr::memory_resource *mr=nullptr)
 Shift an image by an arbitrary (dx, dy) translation (B = imtranslate(A, [dx dy])).
Value nk::image::axes2pix (double n, const Value &extent, const Value &axesCoord, std::pmr::memory_resource *mr=nullptr)
 World-axis ↔ pixel coordinate mapping (pix = axes2pix(n, extent, axesCoord)).
Value nk::image::imresize3 (const Value &V, size_t outR, size_t outC, size_t outD, const std::string &method, bool antialias, std::pmr::memory_resource *mr=nullptr)
 Resample a 3-D volume to a new size (B = imresize3(V, scale|[r c d], method, ...)).
Value nk::image::imresize3 (const Value &V, double scale, const std::string &method, bool antialias, std::pmr::memory_resource *mr=nullptr)
 Resample a 3-D volume by a uniform scale factor (B = imresize3(V, scale, ...)).
Value nk::image::imrotate3 (const Value &V, double angle_deg, double Wx, double Wy, double Wz, const std::string &method, const std::string &bbox, double fill, std::pmr::memory_resource *mr=nullptr)
 Rotate a 3-D volume around an arbitrary axis (B = imrotate3(V, angle, W, method, bbox, FillValues=v)).
Value nk::image::impyramid (const Value &A, const std::string &type, std::pmr::memory_resource *mr=nullptr)
 Burt–Adelson image pyramid step (B = impyramid(A, type)).