[Python] Applying LUT to Image in Jupyter Lab / Python

Discussão em 'Python' iniciado por Stack, Março 7, 2025.

  1. Stack

    Stack Membro Participativo

    I have a TIFF image file of a sediment core and would like to apply a LUT made from a software. I want to take the .code LUT file and apply it to the image by using Python. Does anyone have suggestions as to how to do this? Or code about making a LUT table in Python? Thank you!

    Here's the LUT .code file: https://drive.google.com/file/d/16X-uDlfutH9aGTO5V2-3DsW0lsHclbn2/view?usp=share_link

    Here's the TIFF: https://drive.google.com/file/d/1K4ELgMmgN1Wks9KbxJxUMxZYsgPsAhOR/view?usp=share_link

    The TIFF files I have are 16-bit and should be grayscale, the LUT is also formatted for 16-bit, but may be in a RGB format. My main priority is trying to determine what steps I need to take to have the LUT applied to the TIFF image. And I know I can do this in the software, but we're trying to see if it's possible to do it in Python as well.

    Continue reading...

Compartilhe esta Página