• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to add ProfileHueSatMap data into an RAW image

New Here ,
Oct 14, 2017 Oct 14, 2017

Copy link to clipboard

Copied

Recently, I'm working on the DNG related works.

I have some questions about adding the TAGs of DNG.

I have already added multiple DNG Tags into the raw image using a script build on MATLAB. Such as CFAPattern2, CCM and etc.

After read the specification of dng 1.4.0, I found there are three HUE related TAGs which I haven't added into my MATLAB script.

•ProfileHueSatMapData1

•ProfileHueSatMapData2

•ProfileHueSatMapDims

The type of ProfileHueSatMapDims is LONG, and this tag stands for the divisions of hue, saturation and value.

I've found those three values always be 6 6 3 (still not sure how these value will affect the raw image).

For the other two TAGs, both types are FLOAT. With the help of ExifToolGUI, I can get there is a large amount of binary data stored in these two tags as shown below.

With the help of MATLAB build-in function, I can convert the jpeg image from RGB color space to HSV color space, using --- rgb2hsv.

My problem is how to transfer these HSV data generated from rgb2hsv into ProfileHueSatMapData1 ?

* The generated HSV data is a 3 layer data.

* For ProfileHueSatMapData1, I suppose it should be 1 layer.

Views

657

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation