Canon EOS R5 unsharp mask settings

Started by JohnMoyer, May 08, 2024, 05:59:37 PM

Previous topic - Next topic

JohnMoyer

Hello

Thanks for exiftool. Let me know if I can help.

It appears to me that the Canon unsharp mask settings when set in the custom style menu on EOS R5 for USER DEF 1 style are (maybe, just guessing, 129 indicates "Standard" picture style as the starting point):
9732 sharp strength 3, fineness 1, threshold 3
! [MakerNotes:Image] Canon_Processing_0x000e      : 1
  [MakerNotes:Image] Canon_Processing_0x000f      : 3
  [MakerNotes:Image] Canon_Processing_0x0010      : 0
  [MakerNotes:Image] Canon_Processing_0x0011      : -1 ( 129 unsigned? )

9734 sharp strength 4, fineness 2, threshold 3
  [MakerNotes:Image] Canon_Processing_0x000e      : 2
! [MakerNotes:Image] Canon_Processing_0x000f      : 3
  [MakerNotes:Image] Canon_Processing_0x0010      : 0
  [MakerNotes:Image] Canon_Processing_0x0011      :  -1 (129 unsigned ?)
 
9735 sharp strength 4, fineness 2, threshold 2
  [MakerNotes:Image] Canon_Processing_0x000e      : 2
! [MakerNotes:Image] Canon_Processing_0x000f      : 2
  [MakerNotes:Image] Canon_Processing_0x0010      : 0
  [MakerNotes:Image] Canon_Processing_0x0011      : -1 (129)


9736  strength 4, fineness 2, threshold 5
  [MakerNotes:Image] Canon_Processing_0x000e      : 2
! [MakerNotes:Image] Canon_Processing_0x000f      : 5
  [MakerNotes:Image] Canon_Processing_0x0010      : 0
  [MakerNotes:Image] Canon_Processing_0x0011      : -1 (129)


***************
*** 2275,2290 ****
    | | | | |     38b6: 00 00 00 00                                     [....]
    | | | | 24) ProcessingInfo (SubDirectory) -->
    | | | |     - Tag 0x00a0 (36 bytes, int16u[18] read as undef[36]):
!   | | | |         38ba: 24 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 [$...............]
!   | | | |         38ca: ff ff 50 14 21 00 00 00 00 00 00 00 02 00 03 00 [..P.!...........]
    | | | |         38da: 00 00 ff ff                                     [....]
    | | | | + [BinaryData directory, 36 bytes]
    | | | | | ToneCurve = 0
    | | | | | - Tag 0x0001 (2 bytes, int16s[1]):
    | | | | |     38bc: 00 00                                           [..]
!   | | | | | Sharpness = 4
    | | | | | - Tag 0x0002 (2 bytes, int16s[1]):
!   | | | | |     38be: 04 00                                           [..]
    | | | | | SharpnessFrequency = 0
    | | | | | - Tag 0x0003 (2 bytes, int16s[1]):
    | | | | |     38c0: 00 00                                           [..]
--- 2275,2290 ----
    | | | | |     38b6: 00 00 00 00                                     [....]
    | | | | 24) ProcessingInfo (SubDirectory) -->
    | | | |     - Tag 0x00a0 (36 bytes, int16u[18] read as undef[36]):
!   | | | |         38ba: 24 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 [$...............]
!   | | | |         38ca: ff ff 50 14 21 00 00 00 00 00 00 00 01 00 03 00 [..P.!...........]
    | | | |         38da: 00 00 ff ff                                     [....]
    | | | | + [BinaryData directory, 36 bytes]
    | | | | | ToneCurve = 0
    | | | | | - Tag 0x0001 (2 bytes, int16s[1]):
    | | | | |     38bc: 00 00                                           [..]
!   | | | | | Sharpness = 3
    | | | | | - Tag 0x0002 (2 bytes, int16s[1]):
!   | | | | |     38be: 03 00                                           [..]
    | | | | | SharpnessFrequency = 0
    | | | | | - Tag 0x0003 (2 bytes, int16s[1]):
    | | | | |     38c0: 00 00                                           [..]


Phil Harvey

Interesting, thanks.  So I'll decode these tags as the following:

Canon_Processing_0x000e --> UnsharpMaskFineness
Canon_Processing_0x000f --> UnsharpMaskThreshold

Can you find any setting that changes Canon_Processing_0x0010?

Also, Canon_Processing_0x0011 is not 129:  -1 is either 255 (1-byte) or 65535 (2-byte).  So I don't think this is the PictureStyle.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

JohnMoyer

Quote from: Phil Harvey on May 08, 2024, 07:57:54 PMInteresting, thanks.  So I'll decode these tags as the following:

Canon_Processing_0x000e --> UnsharpMaskFineness
Canon_Processing_0x000f --> UnsharpMaskThreshold

Can you find any setting that changes Canon_Processing_0x0010?

Also, Canon_Processing_0x0011 is not 129:  -1 is either 255 (1-byte) or 65535 (2-byte).  So I don't think this is the PictureStyle.

- Phil
Thanks for correcting my arithmetic. I was never good at arithmetic and have forgotten much.

I have not yet found a setting that changes Canon_Processing_0x0011Canon_Processing_0x0011 but I will let you know if I do.

JohnMoyer

I loaded the "Clear" pf2 style file that I found in Canon DPP software application directory tree.

It appears to me that Canon_0x4011 contains information from the pf2 file.

*** out2/IMG_9728_CR3.txt       Wed May  8 15:47:40 2024
--- out2/IMG_9744_CR3.txt       Thu May  9 08:01:16 2024

...

***************
*** 280,293 ****
  [MakerNotes:Camera] CroppedImageHeight          : 5464
  [MakerNotes:Camera] CroppedImageLeft            : 0
  [MakerNotes:Camera] CroppedImageTop             : 0
! [MakerNotes:Camera] MeasuredRGGB                : 1147 1024 1024 1117
  [MakerNotes:Camera] Canon_MeasuredColor_0x0005  : 1
  [MakerNotes:Camera] ColorSpace                  : sRGB
  [MakerNotes:Camera] VRDOffset                   : 0
! [MakerNotes:Camera] PictureStyleUserDef         : Standard; Standard; Standard
! [MakerNotes:Camera] PictureStylePC              : None; None; None
! [MakerNotes:Camera] CustomPictureStyleFileName  :
! [MakerNotes:Camera] Canon_0x4011                : [...]
  [MakerNotes:Camera] Canon_0x4012                :
  [MakerNotes:Camera] AFMicroAdjMode              : Disable
  [MakerNotes:Camera] AFMicroAdjValue             : 0
--- 280,293 ----
  [MakerNotes:Camera] CroppedImageHeight          : 5464
  [MakerNotes:Camera] CroppedImageLeft            : 0
  [MakerNotes:Camera] CroppedImageTop             : 0
! [MakerNotes:Camera] MeasuredRGGB                : 1076 1024 1024 1068
  [MakerNotes:Camera] Canon_MeasuredColor_0x0005  : 1
  [MakerNotes:Camera] ColorSpace                  : sRGB
  [MakerNotes:Camera] VRDOffset                   : 0
! [MakerNotes:Camera] PictureStyleUserDef         : Standard; PC 2; Fine Detail
! [MakerNotes:Camera] PictureStylePC              : None; Standard; None
! [MakerNotes:Camera] CustomPictureStyleFileName  : CLEAR
! [MakerNotes:Camera] Canon_0x4011                : <FF>/<FF><FF>s<D1>J<F6>.<89>`~иQ<F2><C1>.<BA>^<84>l<D6>Tv<9C><93><8B><F4><F8><D9>.<FC><98><80>A...<ED><ED>x<C3><<EE>'<DB>.<B3>n&<B5>[...]
  [MakerNotes:Camera] Canon_0x4012                :
  [MakerNotes:Camera] AFMicroAdjMode              : Disable
  [MakerNotes:Camera] AFMicroAdjValue             : 0






JohnMoyer

The "Clarity" menu setting seems to be stored in Canon_CameraSettings_0x0033.

Phil Harvey

I don't know if I can do anything about 0x4011, but I can decode the CameraSettings_0x0033 if you tell me what values this takes for each of the Clarity menu settings.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

JohnMoyer

Quote from: Phil Harvey on May 09, 2024, 10:53:05 AMI don't know if I can do anything about 0x4011, but I can decode the CameraSettings_0x0033 if you tell me what values this takes for each of the Clarity menu settings.

- Phil

Sorry.

The clarity setting ranges from -4 to +4 with zero as default. This setting is not available in all cameras.

https://cam.start.canon/en/C003/manual/html/UG-03_Shooting-1_0180.html




Martin B.

FYI:

I get the same results with my Canon R6 as John in his first post.
I can also change the Clarity setting, and it appears in Canon_CameraSettings_0x0033.

So, feel free to enable decoding of these settings for the Canon R6 as well.

-Martin

Phil Harvey

Great, thanks.  I'll decode Clarity in the next release.  From my samples it looks valid for all R models, and for other models where the tag exists but isn't applicable it seems to have a value of 32767.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).