ruby-vips 0.3.14 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +22 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +46 -31
- data/{LICENSE → LICENSE.txt} +1 -1
- data/README.md +101 -145
- data/Rakefile +45 -0
- data/TODO +8 -32
- data/VERSION +1 -0
- data/example/annotate.rb +17 -0
- data/example/daltonize8.rb +75 -0
- data/example/example1.rb +84 -0
- data/example/example2.rb +31 -0
- data/example/example3.rb +19 -0
- data/example/example4.rb +18 -0
- data/example/example5.rb +31 -0
- data/example/trim8.rb +41 -0
- data/example/watermark.rb +44 -0
- data/example/wobble.rb +36 -0
- data/lib/vips.rb +151 -14
- data/lib/vips/access.rb +14 -0
- data/lib/vips/align.rb +11 -0
- data/lib/vips/angle.rb +12 -0
- data/lib/vips/angle45.rb +16 -0
- data/lib/vips/argument.rb +163 -0
- data/lib/vips/bandformat.rb +20 -0
- data/lib/vips/call.rb +302 -0
- data/lib/vips/coding.rb +14 -0
- data/lib/vips/demandstyle.rb +35 -0
- data/lib/vips/direction.rb +11 -0
- data/lib/vips/error.rb +30 -0
- data/lib/vips/extend.rb +22 -0
- data/lib/vips/foreignflags.rb +20 -0
- data/lib/vips/image.rb +1382 -0
- data/lib/vips/interpolate.rb +37 -0
- data/lib/vips/interpretation.rb +28 -0
- data/lib/vips/methods.rb +1807 -0
- data/lib/vips/operation.rb +19 -0
- data/ruby-vips8.gemspec +112 -0
- data/spec/image_spec.rb +515 -0
- data/spec/samples/balloon.v +0 -0
- data/spec/samples/ghost.ppm +405 -0
- data/spec/samples/huge.jpg +0 -0
- data/spec/samples/icc.jpg +0 -0
- data/spec/samples/lcd.icc +0 -0
- data/spec/samples/lion.svg +154 -0
- data/spec/samples/sample.csv +7 -0
- data/spec/samples/sample.exr +0 -0
- data/spec/samples/wagon.jpg +0 -0
- data/spec/samples/wagon.v +0 -0
- data/spec/spec_helper.rb +49 -0
- data/spec/vips_spec.rb +74 -0
- metadata +110 -70
- data/ext/extconf.rb +0 -31
- data/ext/header.c +0 -457
- data/ext/header.h +0 -9
- data/ext/image.c +0 -629
- data/ext/image.h +0 -72
- data/ext/image_arithmetic.c +0 -936
- data/ext/image_arithmetic.h +0 -38
- data/ext/image_boolean.c +0 -301
- data/ext/image_boolean.h +0 -8
- data/ext/image_colour.c +0 -590
- data/ext/image_colour.h +0 -36
- data/ext/image_conversion.c +0 -884
- data/ext/image_conversion.h +0 -38
- data/ext/image_convolution.c +0 -368
- data/ext/image_convolution.h +0 -13
- data/ext/image_freq_filt.c +0 -740
- data/ext/image_freq_filt.h +0 -27
- data/ext/image_histograms_lut.c +0 -643
- data/ext/image_histograms_lut.h +0 -28
- data/ext/image_morphology.c +0 -327
- data/ext/image_morphology.h +0 -13
- data/ext/image_mosaicing.c +0 -554
- data/ext/image_mosaicing.h +0 -15
- data/ext/image_relational.c +0 -384
- data/ext/image_relational.h +0 -8
- data/ext/image_resample.c +0 -249
- data/ext/image_resample.h +0 -9
- data/ext/interpolator.c +0 -106
- data/ext/interpolator.h +0 -7
- data/ext/mask.c +0 -347
- data/ext/mask.h +0 -18
- data/ext/reader.c +0 -261
- data/ext/reader.h +0 -2
- data/ext/ruby_vips.c +0 -188
- data/ext/ruby_vips.h +0 -72
- data/ext/tags +0 -450
- data/ext/writer.c +0 -371
- data/ext/writer.h +0 -2
- data/lib/vips/reader.rb +0 -272
- data/lib/vips/version.rb +0 -3
- data/lib/vips/writer.rb +0 -342
- data/ruby-vips.gemspec +0 -100
- data/ruby.supp +0 -134
data/ext/header.h
DELETED
data/ext/image.c
DELETED
@@ -1,629 +0,0 @@
|
|
1
|
-
#include "ruby_vips.h"
|
2
|
-
|
3
|
-
VALUE cVIPSImage;
|
4
|
-
|
5
|
-
static ID id_b_w, id_histogram, id_fourier, id_xyz, id_lab, id_cmyk, id_labq,
|
6
|
-
id_rgb, id_ucs, id_lch, id_labs, id_srgb, id_yxy, id_rgb16, id_grey16;
|
7
|
-
|
8
|
-
static ID id_none, id_rad;
|
9
|
-
|
10
|
-
static void
|
11
|
-
img_free(vipsImg *im)
|
12
|
-
{
|
13
|
-
if(im->in)
|
14
|
-
im_close(im->in);
|
15
|
-
|
16
|
-
if(im->deps)
|
17
|
-
free(im->deps);
|
18
|
-
|
19
|
-
xfree(im);
|
20
|
-
}
|
21
|
-
|
22
|
-
static void
|
23
|
-
img_mark(vipsImg *im)
|
24
|
-
{
|
25
|
-
int i;
|
26
|
-
|
27
|
-
for (i = 0; i < im->deps_len; i++)
|
28
|
-
rb_gc_mark(im->deps[i]);
|
29
|
-
}
|
30
|
-
|
31
|
-
VALUE
|
32
|
-
img_alloc(VALUE klass)
|
33
|
-
{
|
34
|
-
vipsImg *im;
|
35
|
-
VALUE new = Data_Make_Struct(klass, vipsImg, img_mark, img_free, im);
|
36
|
-
im->in = NULL;
|
37
|
-
im->deps = NULL;
|
38
|
-
im->deps_len = 0;
|
39
|
-
|
40
|
-
return new;
|
41
|
-
}
|
42
|
-
|
43
|
-
void
|
44
|
-
img_add_dep(vipsImg *im, VALUE dep)
|
45
|
-
{
|
46
|
-
int i;
|
47
|
-
|
48
|
-
for (i = 0; i < im->deps_len; i++)
|
49
|
-
if (im->deps[i] == dep)
|
50
|
-
return;
|
51
|
-
|
52
|
-
im->deps_len++;
|
53
|
-
im->deps = (VALUE*)realloc(im->deps, im->deps_len * sizeof(VALUE));
|
54
|
-
im->deps[im->deps_len - 1] = dep;
|
55
|
-
}
|
56
|
-
|
57
|
-
VALUE
|
58
|
-
img_init(VALUE klass, VipsImage *im)
|
59
|
-
{
|
60
|
-
vipsImg *data;
|
61
|
-
VALUE new;
|
62
|
-
|
63
|
-
new = img_alloc(klass);
|
64
|
-
Data_Get_Struct(new, vipsImg, data);
|
65
|
-
data->in = im;
|
66
|
-
|
67
|
-
return new;
|
68
|
-
}
|
69
|
-
|
70
|
-
VALUE
|
71
|
-
img_init_partial_anyclass(VALUE klass)
|
72
|
-
{
|
73
|
-
VipsImage *im;
|
74
|
-
|
75
|
-
if (!(im = im_open("img_init_partial", "p")))
|
76
|
-
vips_lib_error();
|
77
|
-
|
78
|
-
return img_init(klass, im);
|
79
|
-
}
|
80
|
-
|
81
|
-
VALUE
|
82
|
-
img_init_partial()
|
83
|
-
{
|
84
|
-
return img_init_partial_anyclass(cVIPSImage);
|
85
|
-
}
|
86
|
-
|
87
|
-
VALUE
|
88
|
-
img_spawn(VALUE parent)
|
89
|
-
{
|
90
|
-
vipsImg *im;
|
91
|
-
VALUE new = img_init_partial();
|
92
|
-
Data_Get_Struct(new, vipsImg, im);
|
93
|
-
img_add_dep(im, parent);
|
94
|
-
|
95
|
-
return new;
|
96
|
-
}
|
97
|
-
|
98
|
-
VALUE
|
99
|
-
img_spawn2(VALUE parent1, VALUE parent2)
|
100
|
-
{
|
101
|
-
VALUE new = img_spawn(parent1);
|
102
|
-
vipsImg *im;
|
103
|
-
Data_Get_Struct(new, vipsImg, im);
|
104
|
-
|
105
|
-
img_add_dep(im, parent2);
|
106
|
-
return new;
|
107
|
-
}
|
108
|
-
|
109
|
-
VALUE
|
110
|
-
img_spawn3(VALUE parent1, VALUE parent2, VALUE parent3)
|
111
|
-
{
|
112
|
-
VALUE new = img_spawn2(parent1, parent2);
|
113
|
-
vipsImg *im;
|
114
|
-
Data_Get_Struct(new, vipsImg, im);
|
115
|
-
|
116
|
-
img_add_dep(im, parent3);
|
117
|
-
return new;
|
118
|
-
}
|
119
|
-
|
120
|
-
ID
|
121
|
-
img_vtype_to_id(VipsType vtype)
|
122
|
-
{
|
123
|
-
switch(vtype) {
|
124
|
-
case IM_TYPE_B_W: return id_b_w;
|
125
|
-
case IM_TYPE_HISTOGRAM: return id_histogram;
|
126
|
-
case IM_TYPE_FOURIER: return id_fourier;
|
127
|
-
case IM_TYPE_XYZ: return id_xyz;
|
128
|
-
case IM_TYPE_LAB: return id_lab;
|
129
|
-
case IM_TYPE_CMYK: return id_cmyk;
|
130
|
-
case IM_TYPE_LABQ: return id_labq;
|
131
|
-
case IM_TYPE_RGB: return id_rgb;
|
132
|
-
case IM_TYPE_UCS: return id_ucs;
|
133
|
-
case IM_TYPE_LCH: return id_lch;
|
134
|
-
case IM_TYPE_LABS: return id_labs;
|
135
|
-
case IM_TYPE_sRGB: return id_srgb;
|
136
|
-
case IM_TYPE_YXY: return id_yxy;
|
137
|
-
case IM_TYPE_RGB16: return id_rgb16;
|
138
|
-
case IM_TYPE_GREY16: return id_grey16;
|
139
|
-
default: return id_b_w;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
ID
|
144
|
-
img_coding_to_id(VipsCoding coding)
|
145
|
-
{
|
146
|
-
switch(coding) {
|
147
|
-
case IM_CODING_NONE: return id_none;
|
148
|
-
case IM_CODING_LABQ: return id_labq;
|
149
|
-
case IM_CODING_RAD: return id_rad;
|
150
|
-
default: return id_none;
|
151
|
-
}
|
152
|
-
}
|
153
|
-
|
154
|
-
/*
|
155
|
-
* call-seq:
|
156
|
-
* im.vtype -> image_type_symbol
|
157
|
-
*
|
158
|
-
* Returns the type of image that Vips has assigned to *self*. This can by any
|
159
|
-
* of:
|
160
|
-
*
|
161
|
-
* :B_W, :HISTOGRAM, :FOURIER, :XYZ, :LAB, :CMYK, :LABQ, :RGB, :UCS, :LCH,
|
162
|
-
* :LABS, :sRGB, :YXY, :RGB16, :GREY16
|
163
|
-
*/
|
164
|
-
|
165
|
-
static VALUE
|
166
|
-
img_vtype(VALUE obj)
|
167
|
-
{
|
168
|
-
GetImg(obj, data, im);
|
169
|
-
|
170
|
-
if (im)
|
171
|
-
return ID2SYM(img_vtype_to_id(im->Type));
|
172
|
-
|
173
|
-
return Qnil;
|
174
|
-
}
|
175
|
-
|
176
|
-
/*
|
177
|
-
* call-seq:
|
178
|
-
* im.coding -> coding_symbol
|
179
|
-
*
|
180
|
-
* Returns the data coding for this image. Coding can be one of:
|
181
|
-
* :NONE, :LABQ, :RAD.
|
182
|
-
*/
|
183
|
-
|
184
|
-
static VALUE
|
185
|
-
img_coding(VALUE obj)
|
186
|
-
{
|
187
|
-
GetImg(obj, data, im);
|
188
|
-
|
189
|
-
if (im)
|
190
|
-
return ID2SYM(img_coding_to_id(im->Coding));
|
191
|
-
|
192
|
-
return Qnil;
|
193
|
-
}
|
194
|
-
|
195
|
-
/*
|
196
|
-
* call-seq:
|
197
|
-
* im.kill -> number
|
198
|
-
*
|
199
|
-
* Returns whether this image has been flagged to stop processing.
|
200
|
-
*/
|
201
|
-
|
202
|
-
static VALUE
|
203
|
-
img_kill(VALUE obj)
|
204
|
-
{
|
205
|
-
GetImg(obj, data, im);
|
206
|
-
return INT2FIX(im->kill);
|
207
|
-
}
|
208
|
-
|
209
|
-
/*
|
210
|
-
* call-seq:
|
211
|
-
* im.filename -> string
|
212
|
-
*
|
213
|
-
* Returns the path from which *self* was read.
|
214
|
-
*/
|
215
|
-
|
216
|
-
static VALUE
|
217
|
-
img_filename(VALUE obj)
|
218
|
-
{
|
219
|
-
GetImg(obj, data, im);
|
220
|
-
|
221
|
-
if (im)
|
222
|
-
return rb_tainted_str_new2(im->filename);
|
223
|
-
|
224
|
-
return Qnil;
|
225
|
-
}
|
226
|
-
|
227
|
-
|
228
|
-
#define GETPIX( TYPE, CONVERSION ) { \
|
229
|
-
TYPE *p = (TYPE *) IM_IMAGE_ADDR(im, x, y); \
|
230
|
-
\
|
231
|
-
if (sz == 1) \
|
232
|
-
return CONVERSION(*p); \
|
233
|
-
\
|
234
|
-
ary = rb_ary_new2(sz); \
|
235
|
-
for (i = 0; i < sz; i++) \
|
236
|
-
rb_ary_push(ary, CONVERSION(p[i])); \
|
237
|
-
\
|
238
|
-
return ary; \
|
239
|
-
}
|
240
|
-
|
241
|
-
#define CGETPIX( TYPE, CONVERSION ) { \
|
242
|
-
TYPE *p = (TYPE *) IM_IMAGE_ADDR(im, x, y); \
|
243
|
-
\
|
244
|
-
ary = rb_ary_new2(sz); \
|
245
|
-
for (i = 0; i < sz; i++) { \
|
246
|
-
rb_ary_push(ary, rb_ary_new3(2, CONVERSION(p[0]), CONVERSION(p[1]))); \
|
247
|
-
p += 2; \
|
248
|
-
} \
|
249
|
-
\
|
250
|
-
return ary; \
|
251
|
-
}
|
252
|
-
|
253
|
-
static VALUE
|
254
|
-
img_pixel_to_rb(VipsImage *im, int x, int y)
|
255
|
-
{
|
256
|
-
const int sz = im->Bands;
|
257
|
-
int i;
|
258
|
-
VALUE ary;
|
259
|
-
|
260
|
-
switch( im->BandFmt ) {
|
261
|
-
case IM_BANDFMT_UCHAR: GETPIX( unsigned char, UINT2NUM ); break;
|
262
|
-
case IM_BANDFMT_CHAR: GETPIX( signed char, INT2NUM ); break;
|
263
|
-
case IM_BANDFMT_USHORT: GETPIX( unsigned short, UINT2NUM ); break;
|
264
|
-
case IM_BANDFMT_SHORT: GETPIX( signed short, INT2NUM ); break;
|
265
|
-
case IM_BANDFMT_UINT: GETPIX( unsigned int, UINT2NUM ); break;
|
266
|
-
case IM_BANDFMT_INT: GETPIX( signed int, INT2FIX ); break;
|
267
|
-
case IM_BANDFMT_FLOAT: GETPIX( float, rb_float_new ); break;
|
268
|
-
|
269
|
-
case IM_BANDFMT_DOUBLE: GETPIX( double, rb_float_new ); break;
|
270
|
-
case IM_BANDFMT_COMPLEX: CGETPIX( float, rb_float_new ); break;
|
271
|
-
case IM_BANDFMT_DPCOMPLEX: CGETPIX( double, rb_float_new ); break;
|
272
|
-
|
273
|
-
default: GETPIX( unsigned char, UINT2NUM ); break;
|
274
|
-
}
|
275
|
-
}
|
276
|
-
|
277
|
-
/*
|
278
|
-
* call-seq:
|
279
|
-
* im[x, y] -> number, ...
|
280
|
-
*
|
281
|
-
* Returns the band values at the given <i>x</i>, <i>y</i> location of the
|
282
|
-
* image. The upper left corner of the image is at 0, 0, and the lower right
|
283
|
-
* corner is at im.x_size - 1, im.y_size - 1.
|
284
|
-
*
|
285
|
-
* If it is a one-band image, then this method returns the value without an
|
286
|
-
* array.
|
287
|
-
*/
|
288
|
-
|
289
|
-
static VALUE
|
290
|
-
img_aref(VALUE obj, VALUE v_x, VALUE v_y)
|
291
|
-
{
|
292
|
-
int x = NUM2INT(v_x);
|
293
|
-
int y = NUM2INT(v_y);
|
294
|
-
GetImg(obj, data, im);
|
295
|
-
|
296
|
-
if (im_incheck(im) || im_check_uncoded("img_aref", im))
|
297
|
-
vips_lib_error();
|
298
|
-
|
299
|
-
if (x >= im->Xsize || x < 0 || y >= im->Ysize || y < 0)
|
300
|
-
rb_raise(rb_eIndexError, "Index out of bounds");
|
301
|
-
|
302
|
-
return img_pixel_to_rb(im, x, y);
|
303
|
-
}
|
304
|
-
|
305
|
-
/*
|
306
|
-
* call-seq:
|
307
|
-
* im.each_pixel{|value, x, y|}
|
308
|
-
*
|
309
|
-
* Yields every pixel in the image, with coordinates.
|
310
|
-
*/
|
311
|
-
|
312
|
-
static VALUE
|
313
|
-
img_each_pixel(VALUE obj)
|
314
|
-
{
|
315
|
-
int x, y;
|
316
|
-
VALUE pixel;
|
317
|
-
GetImg(obj, data, im);
|
318
|
-
|
319
|
-
if (im_incheck(im) || im_check_uncoded("img_each_pixel", im))
|
320
|
-
return( Qnil );
|
321
|
-
|
322
|
-
for(y = 0; y < im->Ysize; y++) {
|
323
|
-
for(x = 0; x < im->Xsize; x++) {
|
324
|
-
pixel = img_pixel_to_rb(im, x, y);
|
325
|
-
rb_yield(rb_ary_new3(3, pixel, INT2FIX(x), INT2FIX(y)));
|
326
|
-
}
|
327
|
-
}
|
328
|
-
|
329
|
-
return obj;
|
330
|
-
}
|
331
|
-
|
332
|
-
/*
|
333
|
-
* call-seq:
|
334
|
-
* im.data -> data_string
|
335
|
-
*
|
336
|
-
* Returns the uncompressed data of the image.
|
337
|
-
*/
|
338
|
-
|
339
|
-
static VALUE
|
340
|
-
img_data(VALUE obj)
|
341
|
-
{
|
342
|
-
GetImg(obj, data, im);
|
343
|
-
|
344
|
-
if (im_incheck(im) )
|
345
|
-
return( Qnil );
|
346
|
-
|
347
|
-
return rb_tainted_str_new((const char *) im->data,
|
348
|
-
IM_IMAGE_SIZEOF_LINE(im) * im->Ysize);
|
349
|
-
}
|
350
|
-
|
351
|
-
/*
|
352
|
-
* Image objects reference in-memory images. All operations that manipulate and
|
353
|
-
* return an image will simply add the operation to the pipeline and return an
|
354
|
-
* image that references the image after the operation. The actual operation is
|
355
|
-
* not performed until the image is written to a file or to a string.
|
356
|
-
*/
|
357
|
-
void
|
358
|
-
init_Image(void)
|
359
|
-
{
|
360
|
-
cVIPSImage = rb_define_class_under(mVIPS, "Image", rb_cObject);
|
361
|
-
rb_define_alloc_func(cVIPSImage, img_alloc);
|
362
|
-
rb_include_module(cVIPSImage, mVIPSHeader);
|
363
|
-
|
364
|
-
rb_define_singleton_method(cVIPSImage, "linreg", img_s_linreg, -1); // in image_arithmetic.c
|
365
|
-
rb_define_singleton_method(cVIPSImage, "gaussnoise", img_s_gaussnoise, 4); // in image_conversion.c
|
366
|
-
rb_define_singleton_method(cVIPSImage, "black", img_s_black, 3); // in image_conversion.c
|
367
|
-
rb_define_singleton_method(cVIPSImage, "text", img_s_text, 5); // in image_conversion.c
|
368
|
-
rb_define_singleton_method(cVIPSImage, "fmask_ideal_highpass", img_s_fmask_ideal_highpass, 3); // in image_freq_filt.c
|
369
|
-
rb_define_singleton_method(cVIPSImage, "fmask_ideal_lowpass", img_s_fmask_ideal_lowpass, 3); // in image_freq_filt.c
|
370
|
-
rb_define_singleton_method(cVIPSImage, "fmask_butterworth_highpass", img_s_fmask_butterworth_highpass, 5); // in image_freq_filt.c
|
371
|
-
rb_define_singleton_method(cVIPSImage, "fmask_butterworth_lowpass", img_s_fmask_butterworth_lowpass, 5); // in image_freq_filt.c
|
372
|
-
rb_define_singleton_method(cVIPSImage, "fmask_gauss_highpass", img_s_fmask_gauss_highpass, 4); // in image_freq_filt.c
|
373
|
-
rb_define_singleton_method(cVIPSImage, "fmask_gauss_lowpass", img_s_fmask_gauss_lowpass, 4); // in image_freq_filt.c
|
374
|
-
rb_define_singleton_method(cVIPSImage, "fmask_ideal_ringpass", img_s_fmask_ideal_ringpass, 4); // in image_freq_filt.c
|
375
|
-
rb_define_singleton_method(cVIPSImage, "fmask_ideal_ringreject", img_s_fmask_ideal_ringreject, 4); // in image_freq_filt.c
|
376
|
-
rb_define_singleton_method(cVIPSImage, "fmask_butterworth_ringpass", img_s_fmask_butterworth_ringpass, 6); // in image_freq_filt.c
|
377
|
-
rb_define_singleton_method(cVIPSImage, "fmask_butterworth_ringreject", img_s_fmask_butterworth_ringreject, 6); // in image_freq_filt.c
|
378
|
-
rb_define_singleton_method(cVIPSImage, "fmask_gauss_ringpass", img_s_fmask_gauss_ringpass, 5); // in image_freq_filt.c
|
379
|
-
rb_define_singleton_method(cVIPSImage, "fmask_gauss_ringreject", img_s_fmask_gauss_ringreject, 5); // in image_freq_filt.c
|
380
|
-
rb_define_singleton_method(cVIPSImage, "fmask_ideal_bandpass", img_s_fmask_ideal_bandpass, 5); // in image_freq_filt.c
|
381
|
-
rb_define_singleton_method(cVIPSImage, "fmask_ideal_bandreject", img_s_fmask_ideal_bandreject, 5); // in image_freq_filt.c
|
382
|
-
rb_define_singleton_method(cVIPSImage, "fmask_butterworth_bandpass", img_s_fmask_butterworth_bandpass, 7); // in image_freq_filt.c
|
383
|
-
rb_define_singleton_method(cVIPSImage, "fmask_butterworth_bandreject", img_s_fmask_butterworth_bandreject, 7); // in image_freq_filt.c
|
384
|
-
rb_define_singleton_method(cVIPSImage, "fmask_gauss_bandpass", img_s_fmask_gauss_bandpass, 6); // in image_freq_filt.c
|
385
|
-
rb_define_singleton_method(cVIPSImage, "fmask_gauss_bandreject", img_s_fmask_gauss_bandreject, 6); // in image_freq_filt.c
|
386
|
-
rb_define_singleton_method(cVIPSImage, "fmask_fractal_flt", img_s_fmask_fractal_flt, 3); // in image_freq_filt.c
|
387
|
-
rb_define_singleton_method(cVIPSImage, "fractsurf", img_s_fractsurf, 2); // in image_freq_filt.c
|
388
|
-
rb_define_singleton_method(cVIPSImage, "identity", img_s_identity, 1); // in image_histograms_lut.c
|
389
|
-
rb_define_singleton_method(cVIPSImage, "identity_ushort", img_s_identity_ushort, 2); // in image_histograms_lut.c
|
390
|
-
rb_define_singleton_method(cVIPSImage, "invertlut", img_s_invertlut, 2); // in image_histograms_lut.c
|
391
|
-
rb_define_singleton_method(cVIPSImage, "buildlut", img_s_buildlut, 1); // in image_histograms_lut.c
|
392
|
-
rb_define_singleton_method(cVIPSImage, "tone_build_range", img_s_tone_build_range, 10); // in image_histograms_lut.c
|
393
|
-
rb_define_singleton_method(cVIPSImage, "tone_build", img_s_tone_build, 8); // in image_histograms_lut.c
|
394
|
-
|
395
|
-
rb_define_method(cVIPSImage, "[]", img_aref, 2);
|
396
|
-
rb_define_method(cVIPSImage, "each_pixel", img_each_pixel, 0);
|
397
|
-
rb_define_method(cVIPSImage, "data", img_data, 0);
|
398
|
-
rb_define_method(cVIPSImage, "vtype", img_vtype, 0);
|
399
|
-
rb_define_method(cVIPSImage, "coding", img_coding, 0);
|
400
|
-
rb_define_method(cVIPSImage, "filename", img_filename, 0);
|
401
|
-
rb_define_method(cVIPSImage, "kill", img_kill, 0);
|
402
|
-
rb_define_method(cVIPSImage, "measure_area", img_measure_area, 7); // in image_arithmetic.c
|
403
|
-
rb_define_method(cVIPSImage, "stats", img_stats, 0); // in image_arithmetic.c
|
404
|
-
rb_define_method(cVIPSImage, "max", img_max, 0); // in image_arithmetic.c
|
405
|
-
rb_define_method(cVIPSImage, "min", img_min, 0); // in image_arithmetic.c
|
406
|
-
rb_define_method(cVIPSImage, "avg", img_avg, 0); // in image_arithmetic.c
|
407
|
-
rb_define_method(cVIPSImage, "deviate", img_deviate, 0); // in image_arithmetic.c
|
408
|
-
rb_define_method(cVIPSImage, "maxpos", img_maxpos, -1); // in image_arithmetic.c
|
409
|
-
rb_define_method(cVIPSImage, "minpos", img_minpos, -1); // in image_arithmetic.c
|
410
|
-
rb_define_method(cVIPSImage, "maxpos_avg", img_maxpos_avg, 0); // in image_arithmetic.c
|
411
|
-
rb_define_method(cVIPSImage, "bandmean", img_bandmean, 0); // in image_arithmetic.c
|
412
|
-
rb_define_method(cVIPSImage, "add", img_add, 1); // in image_arithmetic.c
|
413
|
-
rb_define_alias(cVIPSImage, "+", "add");
|
414
|
-
rb_define_method(cVIPSImage, "subtract", img_subtract, 1); // in image_arithmetic.c
|
415
|
-
rb_define_alias(cVIPSImage, "-", "subtract");
|
416
|
-
rb_define_method(cVIPSImage, "invert", img_invert, 0); // in image_arithmetic.c
|
417
|
-
rb_define_method(cVIPSImage, "lin", img_lin, 2); // in image_arithmetic.c
|
418
|
-
rb_define_method(cVIPSImage, "multiply", img_multiply, 1); // in image_arithmetic.c
|
419
|
-
rb_define_alias(cVIPSImage, "*", "multiply");
|
420
|
-
rb_define_method(cVIPSImage, "divide", img_divide, 1); // in image_arithmetic.c
|
421
|
-
rb_define_alias(cVIPSImage, "/", "divide");
|
422
|
-
rb_define_method(cVIPSImage, "remainder", img_remainder, -1); // in image_arithmetic.c
|
423
|
-
rb_define_method(cVIPSImage, "%", img_remainder_binop, 1);
|
424
|
-
rb_define_method(cVIPSImage, "recomb", img_recomb, 1); // in image_arithmetic.c
|
425
|
-
rb_define_method(cVIPSImage, "sign", img_sign, 0); // in image_arithmetic.c
|
426
|
-
rb_define_method(cVIPSImage, "abs", img_abs, 0); // in image_arithmetic.c
|
427
|
-
rb_define_method(cVIPSImage, "floor", img_floor, 0); // in image_arithmetic.c
|
428
|
-
rb_define_method(cVIPSImage, "rint", img_rint, 0); // in image_arithmetic.c
|
429
|
-
rb_define_method(cVIPSImage, "ceil", img_ceil, 0); // in image_arithmetic.c
|
430
|
-
rb_define_method(cVIPSImage, "point", img_point, 4); // in image_arithmetic.c
|
431
|
-
rb_define_method(cVIPSImage, "pow", img_pow, -1); // in image_arithmetic.c
|
432
|
-
rb_define_method(cVIPSImage, "**", img_pow_binop, 1); // in image_arithmetic.c
|
433
|
-
rb_define_method(cVIPSImage, "expn", img_expn, -1); // in image_arithmetic.c
|
434
|
-
rb_define_method(cVIPSImage, "log", img_log, 0); // in image_arithmetic.c
|
435
|
-
rb_define_method(cVIPSImage, "log10", img_log10, 0); // in image_arithmetic.c
|
436
|
-
rb_define_method(cVIPSImage, "sin", img_sin, 0); // in image_arithmetic.c
|
437
|
-
rb_define_method(cVIPSImage, "cos", img_cos, 0); // in image_arithmetic.c
|
438
|
-
rb_define_method(cVIPSImage, "tan", img_tan, 0); // in image_arithmetic.c
|
439
|
-
rb_define_method(cVIPSImage, "asin", img_asin, 0); // in image_arithmetic.c
|
440
|
-
rb_define_method(cVIPSImage, "acos", img_acos, 0); // in image_arithmetic.c
|
441
|
-
rb_define_method(cVIPSImage, "atan", img_atan, 0); // in image_arithmetic.c
|
442
|
-
rb_define_method(cVIPSImage, "cross_phase", img_cross_phase, 1); // in image_arithmetic.c
|
443
|
-
rb_define_method(cVIPSImage, "and", img_and, -1); // in image_boolean.c
|
444
|
-
rb_define_method(cVIPSImage, "&", img_and_binop, 1);
|
445
|
-
rb_define_method(cVIPSImage, "or", img_or, -1); // in image_boolean.c
|
446
|
-
rb_define_method(cVIPSImage, "|", img_or_binop, 1);
|
447
|
-
rb_define_method(cVIPSImage, "xor", img_xor, -1); // in image_boolean.c
|
448
|
-
rb_define_method(cVIPSImage, "^", img_xor_binop, 1);
|
449
|
-
rb_define_method(cVIPSImage, "<<", img_shiftleft, 1); // in image_boolean.c
|
450
|
-
rb_define_method(cVIPSImage, ">>", img_shiftright, 1); // in image_boolean.c
|
451
|
-
rb_define_method(cVIPSImage, "lab_to_lch", img_lab_to_lch, 0); // in image_colour.c
|
452
|
-
rb_define_method(cVIPSImage, "lch_to_lab", img_lch_to_lab, 0); // in image_colour.c
|
453
|
-
rb_define_method(cVIPSImage, "labq_to_xyz", img_labq_to_xyz, 0); // in image_colour.c
|
454
|
-
rb_define_method(cVIPSImage, "rad_to_float", img_rad_to_float, 0); // in image_colour.c
|
455
|
-
rb_define_method(cVIPSImage, "float_to_rad", img_float_to_rad, 0); // in image_colour.c
|
456
|
-
rb_define_method(cVIPSImage, "lch_to_ucs", img_lch_to_ucs, 0); // in image_colour.c
|
457
|
-
rb_define_method(cVIPSImage, "lab_to_labq", img_lab_to_labq, 0); // in image_colour.c
|
458
|
-
rb_define_method(cVIPSImage, "lab_to_labs", img_lab_to_labs, 0); // in image_colour.c
|
459
|
-
rb_define_method(cVIPSImage, "lab_to_xyz", img_lab_to_xyz, 0); // in image_colour.c
|
460
|
-
rb_define_method(cVIPSImage, "lab_to_xyz_temp", img_lab_to_xyz_temp, 3); // in image_colour.c
|
461
|
-
rb_define_method(cVIPSImage, "lab_to_ucs", img_lab_to_ucs, 0); // in image_colour.c
|
462
|
-
rb_define_method(cVIPSImage, "labq_to_lab", img_labq_to_lab, 0); // in image_colour.c
|
463
|
-
rb_define_method(cVIPSImage, "labq_to_labs", img_labq_to_labs, 0); // in image_colour.c
|
464
|
-
rb_define_method(cVIPSImage, "labs_to_labq", img_labs_to_labq, 0); // in image_colour.c
|
465
|
-
rb_define_method(cVIPSImage, "labs_to_lab", img_labs_to_lab, 0); // in image_colour.c
|
466
|
-
rb_define_method(cVIPSImage, "ucs_to_xyz", img_ucs_to_xyz, 0); // in image_colour.c
|
467
|
-
rb_define_method(cVIPSImage, "ucs_to_lch", img_ucs_to_lch, 0); // in image_colour.c
|
468
|
-
rb_define_method(cVIPSImage, "ucs_to_lab", img_ucs_to_lab, 0); // in image_colour.c
|
469
|
-
rb_define_method(cVIPSImage, "xyz_to_lab", img_xyz_to_lab, 0); // in image_colour.c
|
470
|
-
rb_define_method(cVIPSImage, "xyz_to_lab_temp", img_xyz_to_lab_temp, 3); // in image_colour.c
|
471
|
-
rb_define_method(cVIPSImage, "xyz_to_ucs", img_xyz_to_ucs, 0); // in image_colour.c
|
472
|
-
rb_define_method(cVIPSImage, "srgb_to_xyz", img_srgb_to_xyz, 0); // in image_colour.c
|
473
|
-
rb_define_method(cVIPSImage, "xyz_to_srgb", img_xyz_to_srgb, 0); // in image_colour.c
|
474
|
-
rb_define_method(cVIPSImage, "yxy_to_xyz", img_yxy_to_xyz, 0); // in image_colour.c
|
475
|
-
rb_define_method(cVIPSImage, "xyz_to_yxy", img_xyz_to_yxy, 0); // in image_colour.c
|
476
|
-
rb_define_method(cVIPSImage, "decmc_from_lab", img_decmc_from_lab, 1); // in image_colour.c
|
477
|
-
rb_define_method(cVIPSImage, "de00_from_lab", img_de00_from_lab, 1); // in image_colour.c
|
478
|
-
rb_define_method(cVIPSImage, "de_from_xyz", img_de_from_xyz, 1); // in image_colour.c
|
479
|
-
rb_define_method(cVIPSImage, "de_from_lab", img_de_from_lab, 1); // in image_colour.c
|
480
|
-
rb_define_method(cVIPSImage, "im_lab_morph", img_lab_morph, 5); // in image_colour.c
|
481
|
-
rb_define_method(cVIPSImage, "icc_transform", img_icc_transform, 3); // in image_colour.c
|
482
|
-
rb_define_method(cVIPSImage, "icc_import", img_icc_import, 2); // in image_colour.c
|
483
|
-
rb_define_method(cVIPSImage, "icc_import_embedded", img_icc_import_embedded, 1); // in image_colour.c
|
484
|
-
rb_define_method(cVIPSImage, "icc_export_depth", img_icc_export_depth, 3); // in image_colour.c
|
485
|
-
rb_define_method(cVIPSImage, "icc_ac2rc", img_icc_ac2rc, 1); // in image_colour.c
|
486
|
-
rb_define_method(cVIPSImage, "to_mask", img_to_mask, 0); // in image_conversion.c
|
487
|
-
rb_define_method(cVIPSImage, "copy_file", img_copy_file, 0); // in image_conversion.c
|
488
|
-
rb_define_method(cVIPSImage, "dup", img_dup, 0); // in image_conversion.c
|
489
|
-
rb_define_method(cVIPSImage, "clip2fmt", img_clip2fmt, 1); // in image_conversion.c
|
490
|
-
rb_define_method(cVIPSImage, "scale", img_scale, 0); // in image_conversion.c
|
491
|
-
rb_define_method(cVIPSImage, "msb", img_msb, -1); // in image_conversion.c
|
492
|
-
rb_define_method(cVIPSImage, "copy_swap", img_copy_swap, 0); // in image_conversion.c
|
493
|
-
rb_define_method(cVIPSImage, "copy_native", img_copy_native, 1); // in image_conversion.c
|
494
|
-
rb_define_method(cVIPSImage, "c2amph", img_c2amph, 0); // in image_conversion.c
|
495
|
-
rb_define_method(cVIPSImage, "c2rect", img_c2rect, 0); // in image_conversion.c
|
496
|
-
rb_define_method(cVIPSImage, "ri2c", img_ri2c, 1); // in image_conversion.c
|
497
|
-
rb_define_method(cVIPSImage, "c2imag", img_c2imag, 0); // in image_conversion.c
|
498
|
-
rb_define_method(cVIPSImage, "c2real", img_c2real, 0); // in image_conversion.c
|
499
|
-
rb_define_method(cVIPSImage, "scaleps", img_scaleps, 0); // in image_conversion.c
|
500
|
-
rb_define_method(cVIPSImage, "falsecolour", img_falsecolour, 0); // in image_conversion.c
|
501
|
-
rb_define_method(cVIPSImage, "extract_band", img_extract_band, -1); // in image_conversion.c
|
502
|
-
rb_define_method(cVIPSImage, "extract_area", img_extract_area, -1); // in image_conversion.c
|
503
|
-
rb_define_method(cVIPSImage, "embed", img_embed, 5); // in image_conversion.c
|
504
|
-
rb_define_method(cVIPSImage, "tile_cache", img_tile_cache, 3); // in image_conversion.c
|
505
|
-
rb_define_method(cVIPSImage, "bandjoin", img_bandjoin, -1); // in image_conversion.c
|
506
|
-
rb_define_method(cVIPSImage, "insert", img_insert, -1); // in image_conversion.c
|
507
|
-
rb_define_method(cVIPSImage, "insert_noexpand", img_insert_noexpand, 3); // in image_conversion.c
|
508
|
-
rb_define_method(cVIPSImage, "lrjoin", img_lrjoin, 1); // in image_conversion.c
|
509
|
-
rb_define_method(cVIPSImage, "tbjoin", img_tbjoin, 1); // in image_conversion.c
|
510
|
-
rb_define_method(cVIPSImage, "replicate", img_replicate, 2); // in image_conversion.c
|
511
|
-
rb_define_method(cVIPSImage, "grid", img_grid, 3); // in image_conversion.c
|
512
|
-
rb_define_method(cVIPSImage, "wrap", img_wrap, 2); // in image_conversion.c
|
513
|
-
rb_define_method(cVIPSImage, "fliphor", img_fliphor, 0); // in image_conversion.c
|
514
|
-
rb_define_method(cVIPSImage, "flipver", img_flipver, 0); // in image_conversion.c
|
515
|
-
rb_define_method(cVIPSImage, "rot90", img_rot90, 0); // in image_conversion.c
|
516
|
-
rb_define_method(cVIPSImage, "rot180", img_rot180, 0); // in image_conversion.c
|
517
|
-
rb_define_method(cVIPSImage, "rot270", img_rot270, 0); // in image_conversion.c
|
518
|
-
rb_define_method(cVIPSImage, "subsample", img_subsample, -1); // in image_conversion.c
|
519
|
-
rb_define_method(cVIPSImage, "zoom", img_zoom, -1); // in image_conversion.c
|
520
|
-
rb_define_method(cVIPSImage, "conv", img_conv, 1); // in image_convolution.c
|
521
|
-
rb_define_method(cVIPSImage, "convsep", img_convsep, 1); // in image_convolution.c
|
522
|
-
rb_define_method(cVIPSImage, "compass", img_compass, 1); // in image_convolution.c
|
523
|
-
rb_define_method(cVIPSImage, "gradient", img_gradient, 1); // in image_convolution.c
|
524
|
-
rb_define_method(cVIPSImage, "lindetect", img_lindetect, 1); // in image_convolution.c
|
525
|
-
rb_define_method(cVIPSImage, "sharpen", img_sharpen, 6); // in image_convolution.c
|
526
|
-
rb_define_method(cVIPSImage, "grad_x", img_grad_x, 0); // in image_convolution.c
|
527
|
-
rb_define_method(cVIPSImage, "grad_y", img_grad_y, 0); // in image_convolution.c
|
528
|
-
rb_define_method(cVIPSImage, "fastcor", img_fastcor, 1); // in image_convolution.c
|
529
|
-
rb_define_method(cVIPSImage, "spcor", img_spcor, 1); // in image_convolution.c
|
530
|
-
rb_define_method(cVIPSImage, "gradcor", img_gradcor, 1); // in image_convolution.c
|
531
|
-
rb_define_method(cVIPSImage, "contrast_surface", img_contrast_surface, 2); // in image_convolution.c
|
532
|
-
rb_define_method(cVIPSImage, "addgnoise", img_addgnoise, 1); // in image_convolution.c
|
533
|
-
rb_define_method(cVIPSImage, "fwfft", img_fwfft, 0); // in image_freq_filt.c
|
534
|
-
rb_define_method(cVIPSImage, "invfft", img_invfft, 0); // in image_freq_filt.c
|
535
|
-
rb_define_method(cVIPSImage, "rotquad", img_rotquad, 0); // in image_freq_filt.c
|
536
|
-
rb_define_method(cVIPSImage, "invfftr", img_invfftr, 0); // in image_freq_filt.c
|
537
|
-
rb_define_method(cVIPSImage, "freqflt", img_freqflt, 1); // in image_freq_filt.c
|
538
|
-
rb_define_method(cVIPSImage, "disp_ps", img_disp_ps, 0); // in image_freq_filt.c
|
539
|
-
rb_define_method(cVIPSImage, "phasecor_fft", img_phasecor_fft, 1); // in image_freq_filt.c
|
540
|
-
rb_define_method(cVIPSImage, "histgr", img_histgr, -1); // in image_histograms_lut.c
|
541
|
-
rb_define_method(cVIPSImage, "histnd", img_histnd, 1); // in image_histograms_lut.c
|
542
|
-
rb_define_method(cVIPSImage, "hist_indexed", img_hist_indexed, 1); // in image_histograms_lut.c
|
543
|
-
rb_define_method(cVIPSImage, "project", img_project, 0); // in image_histograms_lut.c
|
544
|
-
rb_define_method(cVIPSImage, "histnorm", img_histnorm, 0); // in image_histograms_lut.c
|
545
|
-
rb_define_method(cVIPSImage, "histcum", img_histcum, 0); // in image_histograms_lut.c
|
546
|
-
rb_define_method(cVIPSImage, "histeq", img_histeq, 0); // in image_histograms_lut.c
|
547
|
-
rb_define_method(cVIPSImage, "histspec", img_histspec, 1); // in image_histograms_lut.c
|
548
|
-
rb_define_method(cVIPSImage, "monotonic?", img_monotonic_p, 0); // in image_histograms_lut.c
|
549
|
-
rb_define_method(cVIPSImage, "hist", img_hist, -1); // in image_histograms_lut.c
|
550
|
-
rb_define_method(cVIPSImage, "hsp", img_hsp, 1); // in image_histograms_lut.c
|
551
|
-
rb_define_method(cVIPSImage, "gammacorrect", img_gammacorrect, 1); // in image_histograms_lut.c
|
552
|
-
rb_define_method(cVIPSImage, "mpercent_hist", img_mpercent_hist, 1); // in image_histograms_lut.c
|
553
|
-
rb_define_method(cVIPSImage, "mpercent", img_mpercent, 1); // in image_histograms_lut.c
|
554
|
-
rb_define_method(cVIPSImage, "heq", img_heq, -1); // in image_histograms_lut.c
|
555
|
-
rb_define_method(cVIPSImage, "lhisteq", img_lhisteq, 2); // in image_histograms_lut.c
|
556
|
-
rb_define_method(cVIPSImage, "stdif", img_stdif, 6); // in image_histograms_lut.c
|
557
|
-
rb_define_method(cVIPSImage, "tone_analyse", img_tone_analyse, 6); // in image_histograms_lut.c
|
558
|
-
rb_define_method(cVIPSImage, "maplut", img_maplut, 1); // in image_histograms_lut.c
|
559
|
-
rb_define_method(cVIPSImage, "histplot", img_histplot, 0); // in image_histograms_lut.c
|
560
|
-
rb_define_method(cVIPSImage, "dilate", img_dilate, 1); // in image_morphology.c
|
561
|
-
rb_define_method(cVIPSImage, "erode", img_erode, 1); // in image_morphology.c
|
562
|
-
rb_define_method(cVIPSImage, "rank", img_rank, 3); // in image_morphology.c
|
563
|
-
rb_define_method(cVIPSImage, "rank_image", img_rank_image, -1); // in image_morphology.c
|
564
|
-
rb_define_method(cVIPSImage, "maxvalue", img_maxvalue, -1); // in image_morphology.c
|
565
|
-
rb_define_method(cVIPSImage, "cntlines_h", img_cntlines_h, 0); // in image_morphology.c
|
566
|
-
rb_define_method(cVIPSImage, "cntlines_v", img_cntlines_v, 0); // in image_morphology.c
|
567
|
-
rb_define_method(cVIPSImage, "zerox_pos", img_zerox_pos, 0); // in image_morphology.c
|
568
|
-
rb_define_method(cVIPSImage, "zerox_neg", img_zerox_neg, 0); // in image_morphology.c
|
569
|
-
rb_define_method(cVIPSImage, "profile_h", img_profile_h, 0); // in image_morphology.c
|
570
|
-
rb_define_method(cVIPSImage, "profile_v", img_profile_v, 0); // in image_morphology.c
|
571
|
-
rb_define_method(cVIPSImage, "label_regions", img_label_regions, 0); // in image_morphology.c
|
572
|
-
rb_define_method(cVIPSImage, "lrmerge", img_lrmerge, -1); // in image_mosaicing.c
|
573
|
-
rb_define_method(cVIPSImage, "tbmerge", img_tbmerge, -1); // in image_mosaicing.c
|
574
|
-
rb_define_method(cVIPSImage, "lrmerge1", img_lrmerge1, -1); // in image_mosaicing.c
|
575
|
-
rb_define_method(cVIPSImage, "tbmerge1", img_tbmerge1, -1); // in image_mosaicing.c
|
576
|
-
rb_define_method(cVIPSImage, "lrmosaic", img_lrmosaic, -1); // in image_mosaicing.c
|
577
|
-
rb_define_method(cVIPSImage, "tbmosaic", img_tbmosaic, -1); // in image_mosaicing.c
|
578
|
-
rb_define_method(cVIPSImage, "lrmosaic1", img_lrmosaic1, -1); // in image_mosaicing.c
|
579
|
-
rb_define_method(cVIPSImage, "tbmosaic1", img_tbmosaic1, -1); // in image_mosaicing.c
|
580
|
-
rb_define_method(cVIPSImage, "global_balance", img_global_balance, 1); // in image_mosaicing.c
|
581
|
-
rb_define_method(cVIPSImage, "global_balancef", img_global_balancef, 1); // in image_mosaicing.c
|
582
|
-
rb_define_method(cVIPSImage, "correl", img_correl, 7); // in image_mosaicing.c
|
583
|
-
rb_define_method(cVIPSImage, "align_bands", img_align_bands, 0); // in image_mosaicing.c
|
584
|
-
rb_define_method(cVIPSImage, "maxpos_subpel", img_maxpos_subpel, 0); // in image_mosaicing.c
|
585
|
-
rb_define_method(cVIPSImage, "equal", img_equal, -1); // in image_relational.c
|
586
|
-
rb_define_method(cVIPSImage, "notequal", img_notequal, -1); // in image_relational.c
|
587
|
-
rb_define_method(cVIPSImage, "less", img_less, -1); // in image_relational.c
|
588
|
-
rb_define_method(cVIPSImage, "lesseq", img_lesseq, -1); // in image_relational.c
|
589
|
-
rb_define_method(cVIPSImage, "more", img_more, -1); // in image_relational.c
|
590
|
-
rb_define_method(cVIPSImage, "moreeq", img_moreeq, -1); // in image_relational.c
|
591
|
-
rb_define_method(cVIPSImage, "ifthenelse", img_ifthenelse, 2); // in image_relational.c
|
592
|
-
rb_define_method(cVIPSImage, "blend", img_blend, 2); // in image_relational.c
|
593
|
-
rb_define_method(cVIPSImage, "affinei", img_affinei, -1); // in image_resample.c
|
594
|
-
rb_define_method(cVIPSImage, "affinei_resize", img_affinei_resize, -1); // in image_resample.c
|
595
|
-
rb_define_method(cVIPSImage, "stretch3", img_stretch3, -1); // in image_resample.c
|
596
|
-
rb_define_method(cVIPSImage, "shrink", img_shrink, -1); // in image_resample.c
|
597
|
-
rb_define_method(cVIPSImage, "rightshift_size", img_rightshift_size, 3); // in image_resample.c
|
598
|
-
rb_define_method(cVIPSImage, "match_linear", img_match_linear, 9); // in image_resample.c
|
599
|
-
rb_define_method(cVIPSImage, "match_linear_search", img_match_linear_search, 11); // in image_resample.c
|
600
|
-
|
601
|
-
id_b_w = rb_intern("B_W");
|
602
|
-
id_histogram = rb_intern("HISTOGRAM");
|
603
|
-
id_fourier = rb_intern("FOURIER");
|
604
|
-
id_xyz = rb_intern("XYZ");
|
605
|
-
id_lab = rb_intern("LAB");
|
606
|
-
id_cmyk = rb_intern("CMYK");
|
607
|
-
id_labq = rb_intern("LABQ");
|
608
|
-
id_rgb = rb_intern("RGB");
|
609
|
-
id_ucs = rb_intern("UCS");
|
610
|
-
id_lch = rb_intern("LCH");
|
611
|
-
id_labs = rb_intern("LABS");
|
612
|
-
id_srgb = rb_intern("sRGB");
|
613
|
-
id_yxy = rb_intern("YXY");
|
614
|
-
id_rgb16 = rb_intern("RGB16");
|
615
|
-
id_grey16 = rb_intern("GREY16");
|
616
|
-
|
617
|
-
id_none = rb_intern("NONE");
|
618
|
-
id_rad = rb_intern("RAD");
|
619
|
-
|
620
|
-
init_Image_colour();
|
621
|
-
init_Image_conversion();
|
622
|
-
init_Image_mosaicing();
|
623
|
-
|
624
|
-
#if 0
|
625
|
-
mVIPS = rb_define_module("VIPS");
|
626
|
-
mVIPSHeader = rb_define_module_under(mVIPS, "Header");
|
627
|
-
#endif
|
628
|
-
}
|
629
|
-
|