im_*merge() class wrapper works

This commit is contained in:
John Cupitt 2014-05-22 16:32:09 +01:00
parent 496d523750
commit 98012d7613
4 changed files with 7 additions and 12 deletions

View File

@ -33,6 +33,7 @@
- added im_tile_cache_random() to help nip2
- added hough_circle() to vips7 C++ API
- added Travis CI config, thanks Lovell
- im_*merge() redone as a class
6/3/14 started 7.38.6
- grey ramp minimum was wrong

2
TODO
View File

@ -3,7 +3,7 @@
nip2 uses:
im_*merge()
im_*merge() done
im_*mosaic()
im_global_balancef()
im_remosaic()

View File

@ -2,6 +2,7 @@ noinst_LTLIBRARIES = libmosaicing.la
libmosaicing_la_SOURCES = \
merge.c \
mosaicing.c \
\
im_align_bands.c \
match.c \

View File

@ -116,20 +116,13 @@ vips_merge_class_init( VipsMergeClass *class )
VIPS_ARGUMENT_REQUIRED_INPUT,
G_STRUCT_OFFSET( VipsMerge, sec ) );
VIPS_ARG_IMAGE( class, "out", 10,
VIPS_ARG_IMAGE( class, "out", 3,
_( "Output" ),
_( "Output image" ),
VIPS_ARGUMENT_REQUIRED_OUTPUT,
G_STRUCT_OFFSET( VipsMerge, out ) );
VIPS_ARG_ENUM( class, "direction", 103,
_( "Direction" ),
_( "Horizontal or vertcial merge" ),
VIPS_ARGUMENT_REQUIRED_INPUT,
G_STRUCT_OFFSET( VipsMerge, direction ),
VIPS_TYPE_DIRECTION, VIPS_DIRECTION_HORIZONTAL );
VIPS_ARG_ENUM( class, "direction", 103,
VIPS_ARG_ENUM( class, "direction", 4,
_( "Direction" ),
_( "Horizontal or vertcial merge" ),
VIPS_ARGUMENT_REQUIRED_INPUT,
@ -143,14 +136,14 @@ vips_merge_class_init( VipsMergeClass *class )
G_STRUCT_OFFSET( VipsMerge, dx ),
-100000000, 1000000000, 1 );
VIPS_ARG_INT( class, "dy", 5,
VIPS_ARG_INT( class, "dy", 6,
_( "dy" ),
_( "Vertical displacement from sec to ref" ),
VIPS_ARGUMENT_REQUIRED_INPUT,
G_STRUCT_OFFSET( VipsMerge, dy ),
-100000000, 1000000000, 1 );
VIPS_ARG_INT( class, "mblend", 5,
VIPS_ARG_INT( class, "mblend", 7,
_( "Max blend" ),
_( "Maximum blend size" ),
VIPS_ARGUMENT_OPTIONAL_INPUT,