I have a 8-bit monochrome image and I want to make it a color (‘green’ for example). In the UI I can select Image -> Lookup Tables -> Green, which colorizes the image. Then when I ‘save as’ a png file, the image is still 8-bit but now in the green channel.
I want to mimic this (and potentially other) behavior in an image processing project I am working on, but I am having trouble figuring out what APIs are being used in the UI implementation.
Thanks in advance for any advice for my specific issue or how to generally figure out how the UI is using the API in its features.