Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Texturing] Add option to choose the internal colorspace used for color fusion #651

Merged
merged 6 commits into from
Jul 4, 2019

Conversation

cvere
Copy link
Contributor

@cvere cvere commented Jul 1, 2019

Description

Add an option to choose the internal colorspace used in texturing for color fusion: sRGB (default), LAB or XYZ. This has no impact on the colorspace used in the output texture files.

Features list

  • Convert images from/to sRGB, LAB and XYZ colorspaces
  • New class to handle image processing, based on OpenImageIO
  • Compute texture colors in a chosen colorspace

Implementation remarks

Reorganization of image processing classes. Thus, the imageIO class handle only the reading and writing part, and the new class imageAlgo handle the image processing part. Both are based on OpenImageIO for efficiency.

cvere added 6 commits June 24, 2019 17:27
Move image processing functions from mvsData::imageIO to the new class mvsData::imageAlgo -> imageIO handles images reading/writing only
- Function to process an image with OpenImageIO parallelization with a custom function
- Functions to convert ian image n LAB colorspace
[mesh] [pipeline] add param to choose colorspace for texture computation (unrelated with the output colorspace)
[mvsData] imageIO: method to transform a colorspace string to an enum
@cvere cvere force-pushed the dev_convertLab branch from a0131f9 to 801fcd4 Compare July 4, 2019 10:46
if(colorspace == "sRGB") return EImageColorSpace::SRGB;
if(colorspace == "LAB") return EImageColorSpace::LAB;
if(colorspace == "XYZ") return EImageColorSpace::XYZ;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Linear"?

@fabiencastan fabiencastan merged commit bb3f13a into develop Jul 4, 2019
@fabiencastan fabiencastan deleted the dev_convertLab branch July 4, 2019 14:57
@fabiencastan fabiencastan added this to the 2019.2 milestone Jul 5, 2019
@fabiencastan fabiencastan changed the title Dev convert lab [Texturing] Add option to choose the internal colorspace used for color fusion Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants