MCPcopy Create free account
hub / github.com/Kitware/VTK / __init__

Method __init__

Web/Python/vtkmodules/web/dataset_builder.py:126–132  ·  view source on GitHub ↗
(self, location, imageMimeType, cameraInfo, metadata={}, sections={})

Source from the content-addressed store, hash-verified

124
125class ImageDataSetBuilder(DataSetBuilder):
126 def __init__(self, location, imageMimeType, cameraInfo, metadata={}, sections={}):
127 DataSetBuilder.__init__(self, location, cameraInfo, metadata, sections)
128 imageExtenstion = "." + imageMimeType.split("/")[1]
129 self.dataHandler.registerData(
130 name="image", type="blob", mimeType=imageMimeType, fileName=imageExtenstion
131 )
132 self.imageCapture.SetFormat(imageMimeType)
133
134 def writeImage(self):
135 self.imageCapture.writeImage(self.dataHandler.getDataAbsoluteFilePath("image"))

Callers

nothing calls this directly

Calls 3

registerDataMethod · 0.80
__init__Method · 0.45
SetFormatMethod · 0.45

Tested by

no test coverage detected