Page 1 of 1

Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Fri Feb 05, 2021 3:57 pm
by Mcosme
Can't Generate LUT from Analyzed Pattern on Resolve 17?

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Fri Feb 05, 2021 5:00 pm
by Jim Simon
I don't know anything about this process. List out the steps to reproduce and I'll test.

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Fri Feb 05, 2021 7:12 pm
by Mcosme
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.

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Fri Feb 05, 2021 11:56 pm
by Dwaine Maggart
This function has been removed in Resolve 17.

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Sat Feb 06, 2021 12:23 am
by Mcosme
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?

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Sat Feb 06, 2021 1:57 am
by Dermot Shane
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

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Sat Feb 06, 2021 2:10 am
by Uli Plank

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Sun Feb 21, 2021 10:19 pm
by Isaac RC
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.

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Mon Feb 22, 2021 1:12 am
by Uli Plank
Did you check out 3D LUT Creator?

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Mon Feb 22, 2021 12:33 pm
by Isaac RC
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 5223 times

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Tue Feb 23, 2021 8:21 am
by Isaac RC
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.

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Wed Feb 24, 2021 3:34 am
by waltervolpatto
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.

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Fri Feb 26, 2021 10:21 pm
by Isaac RC
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.

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Sat Feb 27, 2021 3:48 am
by waltervolpatto
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.....

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Sat Feb 27, 2021 4:56 pm
by Isaac RC
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.

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Sat Feb 27, 2021 7:08 pm
by waltervolpatto
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....

Re: Generate LUT from Analyzed Pattern on Resolve 17

PostPosted: Sun Feb 28, 2021 11:35 am
by Isaac RC
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.