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

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
build/
debug/
release/
.cache/

# Executables
*.out
Expand Down Expand Up @@ -43,6 +44,11 @@ tags
TAGS
### End of VIM

### macOS
# Temporary files
.DS_Store
### End of macOS

### Distribution
vips-*.tar.gz
### End of Distribution
8 changes: 8 additions & 0 deletions cplusplus/include/vips/VImage8.h
Original file line number Diff line number Diff line change
Expand Up @@ -6285,6 +6285,14 @@ class VImage : public VObject {
*/
VImage transpose3d(VOption *options = nullptr) const;

/**
* Convert CICP to scRGB.
*
* @param options Set of options.
* @return Output image.
*/
VImage CICP2scRGB(VOption *options = nullptr) const;

/**
* Transform uhdr to scrgb.
* @param options Set of options.
Expand Down
12 changes: 12 additions & 0 deletions cplusplus/vips-operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3807,6 +3807,18 @@ VImage::transpose3d(VOption *options) const
return out;
}

VImage
VImage::CICP2scRGB(VOption *options) const
{
VImage out;

call("CICP2scRGB", (options ? options : VImage::option())
->set("in", *this)
->set("out", &out));

return out;
}

VImage
VImage::uhdr2scRGB(VOption *options) const
{
Expand Down
1 change: 1 addition & 0 deletions doc/function-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ API docs each function links to for more details.
| `canny` | Canny edge detector | [[email protected]] |
| `case` | Use pixel values to pick cases from an array of images | [[email protected]] |
| `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] |
| `CICP2scRGB` | Transform image with CICP signals to scRGB | [[email protected]] |
| `clamp` | Clamp values of an image | [[email protected]] |
| `colourspace` | Convert to a new colorspace | [[email protected]] |
| `compass` | Convolve with rotating mask | [[email protected]] |
Expand Down
3 changes: 3 additions & 0 deletions doc/libvips-colour.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ slightly different format:
Use [[email protected]] to move an image to a target colourspace
using the best sequence of colour transform operations.

Use [[email protected]2scRGB] to convert an image with CICP signals to scRGB.

Use [[email protected]2scRGB] to convert an SDR image with an attached gainmap
to a full HDR scRGB image.

Expand Down Expand Up @@ -133,6 +135,7 @@ The colour spaces supported by libvips are:
* [[email protected]2XYZ]
* [[email protected]2CMYK]
* [[email protected]2scRGB]
* [[email protected]2scRGB]
* [[email protected]_load]
* [func@icc_present]
* [[email protected]_transform]
Expand Down
Loading
Loading