nip2 comes with a lot of little utility functions. The functions for list processing are listed in Table 6.3. There are a huge number more, too many to really list here. Table 6.4 lists all the utility toolkits with some hints about the kinds of function they contain. Read the (heavily commented) toolkits for details.
Toolkit | Contains | Description |
_convert | parse_int l, … | convert ascii text to numbers |
to_matrix x, … | convert anything into a matrix | |
colour_transform_to to x, … | convert between colour spaces | |
_generate | image_new w h ... | make a blank image |
image_white i | look at image i, try to guess what white is | |
make_xy w h | make an image of size w by h whose pixel value are | |
their coordinates | ||
_types | Image i | all the standard classes and support functions, |
see §6.13 | ||
_predicate | is_colour_space i | test for objects are in various categories or have |
various properties | ||
_stdenv | logical_and x, … | function versions of all the operators |
bandsplit i, … | break up and recombine images by band | |
mean x, … | statistical ops on objects | |
transpose x, flipud x, rot90 x, … | flips, rotates, etc. on objects | |
rad x, pi, … | trigonometry stuff | |
sign x, conj x, polar x, … | complex stuff | |
rint x, ceil x, … | various rounding things | |
fwfft x, … | fourier stuff | |
dilate m x, rank w h n i, … | morphology stuff | |
conv m x, … | convolution stuff | |
image_set_type t i, … | set various image header field | |
resize x y i, … | resampling images | |
recomb m i, … | recombinations | |
clip2fmt f i, … | format conversions | |
hist_find m x, … | histogram stuff | |
id x, const x y, … | various useful operations on functions | |
map_binary fn x y, … | mapping over groups | |