Generate LUT from Analyzed Pattern on Resolve 17

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Mcosme

  • Posts: 16
  • Joined: Fri Aug 09, 2013 1:28 pm

Generate LUT from Analyzed Pattern on Resolve 17

PostFri Feb 05, 2021 3:57 pm

Can't Generate LUT from Analyzed Pattern on Resolve 17?
Offline

Jim Simon

  • Posts: 36198
  • Joined: Fri Dec 23, 2016 1:47 am

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostFri Feb 05, 2021 5:00 pm

I don't know anything about this process. List out the steps to reproduce and I'll test.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Mcosme

  • Posts: 16
  • Joined: Fri Aug 09, 2013 1:28 pm

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostFri Feb 05, 2021 7:12 pm

Image

This was a fixed item on the Color Management tab.
I'll copy the text in the davinci manual 16.

Generate LUT From Analyzed Pattern
This somewhat hidden command allows you to analyze a special test pattern in order to derive a LUT from whatever adjustments were made to that image. It relies on the use of the “trim_lut0.dpx” file that’s located in one of the following directories:

On Mac OS X: Library / Application Support / BlackmagicDesign / DaVinci Resolve

On Windows: C: \ ProgramData \ BlackmagicDesign \ DaVinciResolve \ Support

On Linux: / home / resolve

This procedure is most useful when you want to reverse-engineer an adjustment that’s being made via a third-party application. Be aware that it’s only useful for analyzing primary adjustments, such as lift / gamma / gain style adjustments, saturation adjustments, or curve adjustments. Secondary adjustments and filters such as blurs or sharpen operations cannot be analyzed, and in fact may cause an incorrect analysis.

To use Generate LUT From Current Grade:
1 Import a duplicate of the trim_lut0.dpx file into an application in which to make an adjustment.

2 Make a primary color adjustment of some kind, and save the file. Don’t overwrite the original file.

3 Import the altered trim_lut0.dpx file into DaVinci Resolve, edit it into a timeline, open the Color page, and select that clip.

4 Open the Color Management panel of the Project Settings, type a name for the LUT you’re about to create into the Save LUT as field at the bottom of this panel, and click Generate LUT.

A LUT is generated and saved into the LUT directory of your workstation. To see this LUT’s effect on another clip, select another clip, right-click a node in the Node Editor, and choose the LUT you created from the 3D LUT submenu.
Offline
User avatar

Dwaine Maggart

Blackmagic Design

  • Posts: 13284
  • Joined: Wed Aug 22, 2012 2:53 pm

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostFri Feb 05, 2021 11:56 pm

This function has been removed in Resolve 17.
Dwaine Maggart
Blackmagic Design DaVinci Support
Offline

Mcosme

  • Posts: 16
  • Joined: Fri Aug 09, 2013 1:28 pm

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostSat Feb 06, 2021 12:23 am

Dwaine Maggart wrote:This function has been removed in Resolve 17.

Hi Dwaine, I realized.
Is there any other way to achieve the same result?
Offline

Dermot Shane

  • Posts: 2924
  • Joined: Tue Nov 11, 2014 6:48 pm
  • Location: Vancouver, Canada

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostSat Feb 06, 2021 1:57 am

there is standalone software that does this as well,
i have "lutBuilder" a standalone app that was bundled with Avid|DS (a decade ago, yikes)
and there's other options out there, i have no experience with them as i have the DS app on all my machines
the DS app does work fairly reliably tho if you have access to it
Offline
User avatar

Uli Plank

  • Posts: 25502
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostSat Feb 06, 2021 2:10 am

My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline
User avatar

Isaac RC

  • Posts: 21
  • Joined: Wed Jan 15, 2020 11:06 am
  • Real Name: Isaac Rivas

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostSun Feb 21, 2021 10:19 pm

Mcosme wrote:Can't Generate LUT from Analyzed Pattern on Resolve 17?

Yeah, I'm actually working with this tool too and miss it in 17 version. Currently using it in the 15 version, the only drawback is that I can't chose the LUT size.

BUT I found this app that does allow for size options:


Actually I'm very interested to know if there's any tool capable of generating a LUT from analyzing two identical photos ( real life pictures not color patterns ) one with the color reference to reproduce and the other with the target colors to transform, for color matching.
Offline
User avatar

Uli Plank

  • Posts: 25502
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostMon Feb 22, 2021 1:12 am

Did you check out 3D LUT Creator?
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline
User avatar

Isaac RC

  • Posts: 21
  • Joined: Wed Jan 15, 2020 11:06 am
  • Real Name: Isaac Rivas

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostMon Feb 22, 2021 12:33 pm

Uli Plank wrote:Did you check out 3D LUT Creator?

I just did, tried the demo, but even with Photoshop color match, neither of these tools can transform the color/luma when it's the exact same picture ( with different profiles ). This proves color matching with real life pictures don't make an exact replica probably because they expect different pictures and calculate a broad approximation.

Here's a nice challenge: a picture from an infrared sensor with post "color correction" grade to target the same picture with a normal sensor colors:
FORUM bmdr 2.jpg
Infra red sensor picture with color grade
FORUM bmdr 2.jpg (913.94 KiB) Viewed 6147 times
Offline
User avatar

Isaac RC

  • Posts: 21
  • Joined: Wed Jan 15, 2020 11:06 am
  • Real Name: Isaac Rivas

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostTue Feb 23, 2021 8:21 am

By the way, I've been testing this method with Lattice and it generates a high quality LUT from pattern instantly while Resolve 15 freezes for 5 minutes to make the LUT! In the 16th version was even worse 5 minutes freezed to make a green LUT!
There is something wrong with this tool.
Offline
User avatar

waltervolpatto

  • Posts: 11334
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostWed Feb 24, 2021 3:34 am

Isaac RC wrote:By the way, I've been testing this method with Lattice and it generates a high quality LUT from pattern instantly while Resolve 15 freezes for 5 minutes to make the LUT! In the 16th version was even worse 5 minutes freezed to make a green LUT!
There is something wrong with this tool.


if you ask for a hig density cube/lattice (like 129x129x129) it will take a HUGE amount of time and it is overlkilled.
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline
User avatar

Isaac RC

  • Posts: 21
  • Joined: Wed Jan 15, 2020 11:06 am
  • Real Name: Isaac Rivas

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostFri Feb 26, 2021 10:21 pm

waltervolpatto wrote: if you ask for a hig density cube/lattice (like 129x129x129) it will take a HUGE amount of time and it is overlkilled.


Excuse my technical intrusism, but I recall that LUTs splits colors in a limited number of regions depending on their size, in Photoshop the maximum size is 256, "grid points" are called ( whatever that is ), and only takes a short time to process.

I'm in the situation of editing 8-bit HAVC-S videos from a photocamera, maybe lightweight compared to better formats but specially needed of quality editing due to its compression artifacts.

And yeah, probably a Photoshop 256 LUT size is overkill, it takes some extra load for Resolve to process and never seen any perceptible benefit for the moment.
Offline
User avatar

waltervolpatto

  • Posts: 11334
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostSat Feb 27, 2021 3:48 am

Isaac RC wrote:
waltervolpatto wrote: if you ask for a hig density cube/lattice (like 129x129x129) it will take a HUGE amount of time and it is overlkilled.


Excuse my technical intrusism, but I recall that LUTs splits colors in a limited number of regions depending on their size, in Photoshop the maximum size is 256, "grid points" are called ( whatever that is ), and only takes a short time to process.

I'm in the situation of editing 8-bit HAVC-S videos from a photocamera, maybe lightweight compared to better formats but specially needed of quality editing due to its compression artifacts.

And yeah, probably a Photoshop 256 LUT size is overkill, it takes some extra load for Resolve to process and never seen any perceptible benefit for the moment.


256 on a RGB scale is one thing, 256 on a cube lattice is another...
which is the size of the file photoshop save? (how many lines has?)

a 256 grayscale has 256 lines
a 256 lattice has 256*256*256 = 16,777,216 lines.....
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline
User avatar

Isaac RC

  • Posts: 21
  • Joined: Wed Jan 15, 2020 11:06 am
  • Real Name: Isaac Rivas

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostSat Feb 27, 2021 4:56 pm

waltervolpatto wrote: 256 on a RGB scale is one thing, 256 on a cube lattice is another...
which is the size of the file photoshop save? (how many lines has?)

a 256 grayscale has 256 lines
a 256 lattice has 256*256*256 = 16,777,216 lines.....


All Photoshop LUTs at max. quality of 256 "grid points" weights 453 MB, and Lattice (the software that I'm using for creating LUTs) the max. quality that offers is 128x128x128 and weights 82,7 MB.
So it would seem like Photoshop is actually using lattice cube with 256x256x256.
Note: Lattice doesn't even open this huge LUTs and won't create bigger than 128, wow

Like said, apart from slowing Resolve haven't really seen any benefit yet, because before breaking apart 8-bit videos with my LUTs it can be corrected before hand when editing in Photoshop and also never export them smaller than 33 or 64, that may be why, even if the lattice is much higher, always see it ok independently of the size.
Offline
User avatar

waltervolpatto

  • Posts: 11334
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostSat Feb 27, 2021 7:08 pm

Isaac RC wrote:
waltervolpatto wrote: 256 on a RGB scale is one thing, 256 on a cube lattice is another...
which is the size of the file photoshop save? (how many lines has?)

a 256 grayscale has 256 lines
a 256 lattice has 256*256*256 = 16,777,216 lines.....


All Photoshop LUTs at max. quality of 256 "grid points" weights 453 MB, and Lattice (the software that I'm using for creating LUTs) the max. quality that offers is 128x128x128 and weights 82,7 MB.
So it would seem like Photoshop is actually using lattice cube with 256x256x256.
Note: Lattice doesn't even open this huge LUTs and won't create bigger than 128, wow

Like said, apart from slowing Resolve haven't really seen any benefit yet, because before breaking apart 8-bit videos with my LUTs it can be corrected before hand when editing in Photoshop and also never export them smaller than 33 or 64, that may be why, even if the lattice is much higher, always see it ok independently of the size.



that is way overkill....

there is a point where you dont define a real image but just noise....
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline
User avatar

Isaac RC

  • Posts: 21
  • Joined: Wed Jan 15, 2020 11:06 am
  • Real Name: Isaac Rivas

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostSun Feb 28, 2021 11:35 am

This may be off topic but generating LUTs from analyzed pattern is mainly used for converting to LUTs color adjustments from editing softwares that can't create LUTs, my challenge is to convert to LUT in-camera adjustments + the adjustments of the factory brand RAW editor which the whole thing can't be exported from the software and imitated by other softwares.
Here the difference between RAW photo and 8-bit video is that colors performance are very bad compared to RAW, this can be corrected of course, but the problem is that I have no precise way of translating the RAW colors ( in-camera + factory color interpretation ) to its 8-bit videos.
I wish there was a way to hack the camera and the factory RAW software to apply the color adjustments to a pattern image.

Return to DaVinci Resolve

Who is online

Users browsing this forum: Agrajag, Bing [Bot], Google [Bot], JakeHorton, jocamcam, MediaGary, Nick2021, strihacHRASKO, tippytaps and 387 guests