view scripts/geometry/module.mk @ 20579:131ce8cfaa80

Relax input in functions that convert between colorspaces (bug #45456) * scripts/image/hsv2rgb.m, scripts/image/ntsc2rgb.m, scripts/image/rgb2hsv.m, scripts/image/rgb2ntsc.m: remove all input check and leave it up to new private functions handled by all. This adds support for ND images, drops check for values in the [0 1] range, allows integer images, and allows sparse matrices. Also adjust tests and add extra ones. * scripts/image/private/colorspace_conversion_input_check.m, scripts/image/private/colorspace_conversion_revert.m: all of this functions handle input check in the same way. In the same way, they need to prepare the output in the same way based on what preparation was done during input check (transforming image into colormap). So we create two new private functions to avoid repeated code. All code was adapted from hsv2rgb.
author Carnë Draug <carandraug@octave.org>
date Sun, 19 Jul 2015 17:41:21 +0100
parents 916cc788d906
children
line wrap: on
line source

FCN_FILE_DIRS += scripts/geometry

scripts_geometry_FCN_FILES = \
  scripts/geometry/convhull.m \
  scripts/geometry/delaunayn.m \
  scripts/geometry/delaunay.m \
  scripts/geometry/dsearch.m \
  scripts/geometry/dsearchn.m \
  scripts/geometry/griddata.m \
  scripts/geometry/griddata3.m \
  scripts/geometry/griddatan.m \
  scripts/geometry/inpolygon.m \
  scripts/geometry/rectint.m \
  scripts/geometry/tsearchn.m \
  scripts/geometry/voronoi.m \
  scripts/geometry/voronoin.m

scripts_geometrydir = $(fcnfiledir)/geometry

scripts_geometry_DATA = $(scripts_geometry_FCN_FILES)

FCN_FILES += $(scripts_geometry_FCN_FILES)

PKG_ADD_FILES += scripts/geometry/PKG_ADD

DIRSTAMP_FILES += scripts/geometry/$(octave_dirstamp)