ImageEn, unit imageenproc

TImageEnProc.ApplyCubeLUT

TImageEnProc.ApplyCubeLUT


Declaration

procedure ApplyCubeLUT(const LUT3D: TIE3DLutArray; Interpolate: Boolean = True); overload;
procedure ApplyCubeLUT(const LUTFile: string; Interpolate: Boolean = True); overload;


Description

Applies a 3D Look-up Table to the image content.
The LUT can be supplied either as a 3D array of RGB adjustment values, or a *.Cube file.
If Interpolate is true, neighboring values are mixed to achieve a smoother result

Note:
Only Cube files that have a domain in the region 0.0 to 1.0 are supported
1D Cube files are not supported
You can download Cube files from the internet


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  


// Apply a "Cinematic" LUT to the image
ImageEnView1.Proc.ApplyCubeLUT( 'D:\cinematic.cube' );

  


// Apply a "Blues" LUT to the image
ImageEnView1.Proc.ApplyCubeLUT( 'D:\blues.cube' );

  


// Apply a "Black and White" LUT to the image
ImageEnView1.Proc.ApplyCubeLUT( 'D:\bw.cube' );

  


See Also

IELoadCubeLUTFile
IESaveCubeLUTFile