File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 57
57
58
58
/**
59
59
* SECTION: arithmetic
60
- * @short_description: operations which perform pixel arithmetic, trig, log, statistics
60
+ * @short_description: pixel arithmetic, trig, log, statistics
61
61
* @stability: Stable
62
62
* @include: vips/vips.h
63
63
*
83
83
* #VIPS_FORMAT_USHORT image, and taking the vips_cos() of a
84
84
* #VIPS_FORMAT_USHORT image produces #VIPS_FORMAT_FLOAT image.
85
85
*
86
+ * After processing, use vips_cast() and friends to take then format back down
87
+ * again. vips_cast_uchar(), for example, will cast any image down to 8-bit
88
+ * unsigned.
89
+ *
90
+ * Images have an *interpretation*: a meaning for the pixel values. With
91
+ * #VIPS_INTERPRETATION_sRGB, for example, the first three bands will be
92
+ * interpreted (for example, by a saver like vips_jpegsave()) as R, G and B,
93
+ * with values in 0 - 255, and any fourth band will be interpreted as an
94
+ * alpha channel.
95
+ *
96
+ * After arithmetic, you may wish to change the interpretation (for example to
97
+ * save as 16-bit PNG). Use vips_copy() to change the interpretation without
98
+ * changing pixels.
99
+ *
86
100
* For binary arithmetic operations, type promotion occurs in two stages.
87
101
* First, the two input images are cast up to the smallest common format,
88
102
* that is, the type with the smallest range that can represent the full
You can’t perform that action at this time.
0 commit comments