diff --git a/ChangeLog b/ChangeLog index d9f771fb..eb0328f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ - merge vips-7.16 brach back into trunk - bumped version number to 7.17.0 - re-added type.[hc] +- added vipsinterpolate and im_affinei +- added yafr-smooth interpolation 11/9/08 started 7.16.3 - oop typo in manpage for im_project() diff --git a/TODO b/TODO index 298589f5..84791ff5 100644 --- a/TODO +++ b/TODO @@ -6,8 +6,6 @@ - build nip2 -- test im_affinei - - check mosaic1, global_balance, similarity etc. use of im__affine how can we move them to im_affinei ? diff --git a/include/vips/yafr.h b/include/vips/yafr.h index 1e158cbd..91116b1b 100644 --- a/include/vips/yafr.h +++ b/include/vips/yafr.h @@ -27,8 +27,8 @@ */ -#ifndef VIPS_INTERPOLATE_H -#define VIPS_INTERPOLATE_H +#ifndef VIPS_YAFR_H +#define VIPS_YAFR_H #ifdef __cplusplus extern "C" { @@ -102,5 +102,5 @@ VipsInterpolate *vips_interpolate_yafr_static( void ); } #endif /*__cplusplus*/ -#endif /*VIPS_INTERPOLATE_H*/ +#endif /*VIPS_YAFR_H*/ diff --git a/libsrc/mosaicing/yafr.c b/libsrc/mosaicing/yafr.c index cbe5a56f..ab5512e9 100644 --- a/libsrc/mosaicing/yafr.c +++ b/libsrc/mosaicing/yafr.c @@ -55,6 +55,15 @@ static VipsInterpolateClass *vips_interpolate_yafr_parent_class = NULL; /* Copy-paste of gegl-sampler-yafr-smooth.c starts */ +/* + * 2008 (c) Nicolas Robidoux (developer of Yet Another Fast + * Resampler). + * + * Acknowledgement: N. Robidoux's research on YAFR funded in part by + * an NSERC (National Science and Engineering Research Council of + * Canada) Discovery Grant. + */ + #ifndef restrict #ifdef __restrict #define restrict __restrict @@ -566,7 +575,7 @@ vips_interpolate_yafr_interpolate( VipsInterpolate *interpolate, */ const int channels = in->im->Bands; const int pixels_per_buffer_row = - IM_REGION_LSKIP( in ) / sizeof( float ); + IM_REGION_LSKIP( in ) / (sizeof( float ) * channels); /* Where we write the result. */