# @ImageDisplayService ids

from ij import IJ

import os
import sys
import time

homedir=IJ.getDirectory('imagej')
jythondir=os.path.join(homedir,'plugins/Scripts/Evalulab/')
jythondir=os.path.abspath(jythondir)
sys.path.append(jythondir)

import PoreDetectionUV
reload(PoreDetectionUV)
from PoreDetectionUV import runPoreDetection

if __name__ == '__main__':
	inputImp = IJ.getImage()

	start_time = time.time()

	runPoreDetection(inputImp, data, ops, display)

	run_time=time.time() - start_time

	#IJ.showMessage("--- %f seconds ---" % run_time )

	
	
Esempio n. 2
0
# @ImageDisplayService ids

from ij import IJ

import os
import sys
import time

homedir=IJ.getDirectory('imagej')
jythondir=os.path.join(homedir,'plugins/Evalulab/')
jythondir=os.path.abspath(jythondir)
sys.path.append(jythondir)

import PoreDetectionUV
reload(PoreDetectionUV)
from PoreDetectionUV import runPoreDetection

if __name__ == '__main__':
	inputImp = IJ.getImage()

	start_time = time.time()

	runPoreDetection(inputImp, data, ops, display)

	run_time=time.time() - start_time

	#IJ.showMessage("--- %f seconds ---" % run_time )

	
	
homedir=IJ.getDirectory('imagej')
jythondir=os.path.join(homedir,'plugins/Evalulab/')
jythondir=os.path.abspath(jythondir)
sys.path.append(jythondir)

import PoreDetectionUV
reload(PoreDetectionUV)
from PoreDetectionUV import runPoreDetection

import MessageStrings
reload(MessageStrings)
from MessageStrings import Messages

import Utility
reload(Utility)

if __name__ == '__main__':
	dlg=DirectoryChooser(Messages.ChooseImageDirectory)
	print dlg.getDirectory()

	imageList=Utility.getImageListFromDirectory(dlg.getDirectory())

	for imageName in imageList:
		fullImageName=os.path.join(dlg.getDirectory(), imageName)
		image=IJ.openImage(fullImageName)
		image.show()
		runPoreDetection(image, data, ops, display)
		image.close()
		
	
Esempio n. 4
0
import sys

homedir = IJ.getDirectory('imagej')
jythondir = os.path.join(homedir, 'plugins/Evalulab/')
jythondir = os.path.abspath(jythondir)
sys.path.append(jythondir)

import PoreDetectionUV
reload(PoreDetectionUV)
from PoreDetectionUV import runPoreDetection

import MessageStrings
reload(MessageStrings)
from MessageStrings import Messages

import Utility
reload(Utility)

if __name__ == '__main__':
    dlg = DirectoryChooser(Messages.ChooseImageDirectory)
    print dlg.getDirectory()

    imageList = Utility.getImageListFromDirectory(dlg.getDirectory())

    for imageName in imageList:
        fullImageName = os.path.join(dlg.getDirectory(), imageName)
        image = IJ.openImage(fullImageName)
        image.show()
        runPoreDetection(image, data, ops, display)
        image.close()