fa6401c65531d695f302ac7fdfd76a82e8fc7b83,ilastik/applets/objectExtraction/opObjectExtraction.py,OpRegionFeatures3d,setupOutputs,#OpRegionFeatures3d#,107
Before Change
def setupOutputs(self):
assert self.LabelVolume.meta.shape == self.RawVolume.meta.shape, "different shapes for label volume {} and raw data {}".format(self.LabelVolume.meta.shape, self.RawVolume.meta.shape)
assert self.LabelVolume.meta.axistags == self.RawVolume.meta.axistags
taggedOutputShape = self.LabelVolume.meta.getTaggedShape()
if "t" in taggedOutputShape.keys():
assert taggedOutputShape["t"] == 1
After Change
raise Exception("raw and label axis tags do not match")
taggedOutputShape = self.LabelVolume.meta.getTaggedShape()
taggedRawShape = self.RawVolume.meta.getTaggedShape()
if not np.all(list(taggedOutputShape.get(k, 0) == taggedRawShape.get(k, 0)
for k in "xyzc")):
raise Exception("shapes do not match. label volume shape: {}."
" raw data shape: {}".format(self.LabelVolume.meta.shape,
self.RawVolume.meta.shape))
if taggedOutputShape.get("t", 1) != 1:
raise Exception("this operator cannot handle multiple time slices")
if set(taggedOutputShape.keys()) - set("t") != set("xyzc"):
raise Exception("Input volumes must have xyzc axes.")
// Remove the spatial dims (keep t if present)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: ilastik/ilastik
Commit Name: fa6401c65531d695f302ac7fdfd76a82e8fc7b83
Time: 2013-04-23
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/objectExtraction/opObjectExtraction.py
Class Name: OpRegionFeatures3d
Method Name: setupOutputs
Project Name: ilastik/ilastik
Commit Name: f7ffdfd6259c260091019bcc75eb9f9ec2458e30
Time: 2013-04-23
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/objectExtraction/opObjectExtraction.py
Class Name: OpCachedRegionFeatures
Method Name: setupOutputs
Project Name: ilastik/ilastik
Commit Name: 92aff1a0479801920d6a7d2ebefa4d130b40c7d0
Time: 2013-06-28
Author: ben-heuer@web.de
File Name: ilastik/applets/pixelClassification/opPixelClassificationBatchResults.py
Class Name: OpPixelClassificationBatchResults
Method Name: checkDataConstraint