I am making some code for Python on a Ubuntu OS. I have set the OS default program for opening .png images to ImageJ. However when I try to open an image in Python it opens it with the viewer that comes with the OS. Namely, the sample code I am using to show images is:
import os
from scipy import misc
path = os.path.abspath(os.path.dirname(__file__))
image = misc.imread(path + "/Lena.png")
misc.imshow (image)
I would like to know what I have to do to automatically open images in Python with the ImageJ.
Thank you all.