Skip to content
Snippets Groups Projects
Commit 1aebc7ec authored by ac (tb)'s avatar ac (tb)
Browse files

added leversc/sampleWithHIP

parent c48a9b59
No related branches found
No related tags found
No related merge requests found
"""
leversc sampleWithHIP.py
uses hydra-image-processor (https://git-bioimage.coe.drexel.edu/opensource/hydra-image-processor)
with leversc
add the full path to hydra-image-processor\src\Python to your system PYTHONPATH to import HIP.pyd module
"""
import numpy as np, matplotlib.pyplot as plt
from leversc import leversc
import HIP
strDB='../../sampleImages/lscSampleImage.LEVER'
(im,CONSTANTS)=leversc.readImage(strDB)
imLoG=HIP.LoG(im,[2,2,1])
imLoG = ( imLoG - imLoG.min() )/( imLoG.max() - imLoG.min() )
im=np.expand_dims(im,axis=0)
imLoG=np.expand_dims(imLoG,axis=0)
im=np.concatenate((im,imLoG),axis=0)
lsc1 = leversc(im=im)
print('all done')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment