In slice views, you can overlay two scalar volumes by choosing one of them as foreground and the other as background volume. From Python, you can use slicer.util.setSliceViewerLayers() method to choose volumes and opacity of the overlaid volume.
To create a RGB color volume from a numpy array, use slicer.util.updateVolumeFromArray like this:
What I actually want to do is to read a set of coordinates from a text file and paint the corresponding pixel in red, blue or green. The color of the pixel is read from another text file.
Is there any other way to color a specific pixel?
This is deprecated. Please use slicer.util helper functions instead.
This sounds terribly inefficient. How many points do you have? Do you really want to color single voxels like this or actually you would like to place a colored markers at each of the listed positions?