How to color differently each slice of a stack or each ImageProcessor

Posted by thehobbit on
URL: http://imagej.273.s1.nabble.com/How-to-color-differently-each-slice-of-a-stack-or-each-ImageProcessor-tp5000664.html

Hello everyone,

I'm new to ImageJ and I'm trying to write a plugin that colors each slice of an ImageStack differently one from another.
I'm working with DICOM images.
In particular, I need to select an area of a slice and change the color of it, adding transparency.
I tried different solutions, but I was able only to color all the slices of the stack in the same way.
I tried also to work with ImageProcessors, and they works fine for my problem; but here comes another one:
as I said in the subject, I need a color transparency, in such a way that the selected area is colored and at the same time I can see what there is behind it. But ImageProcessors seems to work at a very low level, and I'm able only to change the colours of the pixels(without transparency), losing previous data.

Can you help me with this please?
Thanks in advance.