Generic bitmap parser for processing color encoded bitmaps and
volumetric datasets. This generic class requires implementing several
functions in order to make it fully functional parser:
|
__init__(self,
**kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
barTracedSlideRenderer
|
parse(self,
slideNumber,
generateLabels=True,
useIndexer=True,
writeSlide=True)
Returns:
Traced slide with given slideNumber . |
|
|
barTracedSlideRenderer
|
_getSlide(self,
slideNumber)
Returns:
Traced slide with given number. |
|
|
SVG XML DOM object
|
|
[(int,int,int), ... ]
|
_getUniqeColours(self,
sourceImage)
Returns:
List of uniqe colours that were found in given image. |
|
|
PIL image
|
_getSourceImage(self,
slideNumber)
Returns:
raw bitmap with slide slideNumber |
|
|
PIL image
|
_createMask(self,
image,
colorValue)
Returns:
Black and white image with structure mask. |
|
|
float
|
_getZCoord(self,
slideNumber)
Returns:
Colonal ('z') coordinate of given slide. |
|
|
(float a, float b, float c, float d)
|
_getSpatialTransfMatrix(self,
slideNumber)
Returns:
Creates set of parameters allowing to translate any image coordinate
into spatial coordinate using the formula: x'=ax+b, y'=cy+d. |
|
|
str
|
|
|
_parseTracerOutput(self,
tracerOutput,
pathColour)
Change PoTrace SVG output in the way which will be usefull later: |
|
|
barPath
|
_getPath(self,
pathElem,
structName,
structFill)
Returns:
Path object representing given structure. |
|
|
Inherited from barGenericParser :
RGBToHTMLColor ,
getProperty ,
parseAll ,
parseRange ,
reindex ,
setProperty ,
writeIndex
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|