Class holding all operation related to rasterizing SVG slides. It
allows rasteizing whole slide, particular structures (by their names), or
paths with given ID or belonging to particular structures.
Class has to be supplied with various parameters described better in
class constructor. All rendered images are provided in form of PIL
images.
|
__init__(self,
vectorSlide,
rendererConfiguration,
tracingConfiguration,
slideNumber=0)
Class requires providing following properties in order to work
properly: |
|
|
|
|
(float, float)
|
_toSVGCoordinates(self,
ImageCoords)
Transform coordinates given in pixels (in image coordinate system) to
coordinates in SVG drawing coordinate system (not spatial reference
system). |
|
|
(int, int)
|
_toImageCoordinates(self,
svgCoords)
Convert coordinates from SVG image to coordinates in raster image
system. |
|
|
PIL.Image.Image or numpy.ndarray
|
_renderSvgDrawing(self,
svgdoc,
renderingSize=None,
boundingBox=None,
otype=' pil ' ,
grayscale=True)
Renders provided SVG image with varioous options and returns rendered
image. |
|
|
|
values(self)
A stub of method. |
|
|
(int, int)
|
|
|
|
(int, int)
|
|
|
|
Inherited from barVectorSlide :
Show ,
addLabel ,
affineTransform ,
alignToRefMatrix ,
deleteLabelByCaption ,
deleteLabelByID ,
getCommentLabels ,
getLabelByName ,
getRegularLabels ,
getSpotLabels ,
renameLabelByCaption ,
retypeLabelByCaption ,
srs2svg ,
svg2srs ,
updateMetadata
Inherited from barObject :
__str__ ,
getElementById ,
getXMLelement ,
writeXMLtoFile
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|