Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3783b75

Browse files
committed
Add CICP2scRGB
1 parent 46dde2e commit 3783b75

File tree

13 files changed

+684
-98
lines changed

13 files changed

+684
-98
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
build/
1212
debug/
1313
release/
14+
.cache/
1415

1516
# Executables
1617
*.out
@@ -43,6 +44,11 @@ tags
4344
TAGS
4445
### End of VIM
4546

47+
### macOS
48+
# Temporary files
49+
.DS_Store
50+
### End of macOS
51+
4652
### Distribution
4753
vips-*.tar.gz
4854
### End of Distribution

cplusplus/include/vips/VImage8.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6285,6 +6285,14 @@ class VImage : public VObject {
62856285
*/
62866286
VImage transpose3d(VOption *options = nullptr) const;
62876287

6288+
/**
6289+
* Convert CICP to scRGB.
6290+
*
6291+
* @param options Set of options.
6292+
* @return Output image.
6293+
*/
6294+
VImage CICP2scRGB(VOption *options = nullptr) const;
6295+
62886296
/**
62896297
* Transform uhdr to scrgb.
62906298
* @param options Set of options.

cplusplus/vips-operators.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3807,6 +3807,18 @@ VImage::transpose3d(VOption *options) const
38073807
return out;
38083808
}
38093809

3810+
VImage
3811+
VImage::CICP2scRGB(VOption *options) const
3812+
{
3813+
VImage out;
3814+
3815+
call("CICP2scRGB", (options ? options : VImage::option())
3816+
->set("in", *this)
3817+
->set("out", &out));
3818+
3819+
return out;
3820+
}
3821+
38103822
VImage
38113823
VImage::uhdr2scRGB(VOption *options) const
38123824
{

doc/function-list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ API docs each function links to for more details.
8686
| `canny` | Canny edge detector | [[email protected]] |
8787
| `case` | Use pixel values to pick cases from an array of images | [[email protected]] |
8888
| `cast` | Cast an image | [[email protected]], [[email protected]_uchar], [[email protected]_char], [[email protected]_ushort], [[email protected]_short], [[email protected]_uint], [[email protected]_int], [[email protected]_float], [[email protected]_double], [[email protected]_complex], [[email protected]_dpcomplex] |
89+
| `CICP2scRGB` | Transform image with CICP signals to scRGB | [[email protected]2scRGB] |
8990
| `clamp` | Clamp values of an image | [[email protected]] |
9091
| `colourspace` | Convert to a new colorspace | [[email protected]] |
9192
| `compass` | Convolve with rotating mask | [[email protected]] |

doc/libvips-colour.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ slightly different format:
3434
Use [[email protected]] to move an image to a target colourspace
3535
using the best sequence of colour transform operations.
3636

37+
Use [[email protected]2scRGB] to convert an image with CICP signals to scRGB.
38+
3739
Use [[email protected]2scRGB] to convert an SDR image with an attached gainmap
3840
to a full HDR scRGB image.
3941

@@ -133,6 +135,7 @@ The colour spaces supported by libvips are:
133135
134136
135137
138+
136139
137140
* [func@icc_present]
138141
* [[email protected]_transform]

0 commit comments

Comments
 (0)