Eidolon
Classes | Functions
eidolon.ImageObject Namespace Reference

Classes

class  ImageSceneObject
 
class  ImageSceneObjectRepr
 
class  ImageSeriesRepr
 
class  ImageVolumeRepr
 
class  SharedImage
 

Functions

def isImageVolume (images, err=1e-3)
 
def sortImageStack (images)
 
def calculateStackClipSqRange (process, imgs, threshold)
 
def calculateStackClipSq (imgs, threshold, margin=2, task=None)
 

Function Documentation

◆ calculateStackClipSq()

def eidolon.ImageObject.calculateStackClipSq (   imgs,
  threshold,
  margin = 2,
  task = None 
)
Calculates the (minx,miny,maxx,maxy) square in image space which encloses all values for the given images which
are greater than or equal to `threshold'. The list `imgs' must contain only SharedImage objects.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateStackClipSqRange()

def eidolon.ImageObject.calculateStackClipSqRange (   process,
  imgs,
  threshold 
)
Here is the caller graph for this function:

◆ isImageVolume()

def eidolon.ImageObject.isImageVolume (   images,
  err = 1e-3 
)
Returns True if the list of ShareImage objects `images' defines a single image volume, that is the positions of all
the images fall on a single common line and the images have a common orientation. The margin of error for calculating
these criteria is `err', which is a rather large value to account for Dicom inaccurracy.

◆ sortImageStack()

def eidolon.ImageObject.sortImageStack (   images)
Returns an indices list indexing the images in list `images' in bottom-up order.
Here is the caller graph for this function: