How to add ProfileHueSatMap data into an RAW image

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.

Topics

DNG
View all replies

Views

213

Likes

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

How to add ProfileHueSatMap data into an RAW image

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.

Topics

DNG
View all replies

Views

214

Likes

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

Have something to add?

Join the conversation