Skip to content
Snippets Groups Projects
Commit e4cb92d3 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Don't assume YXCZ stack when creating accessor

parent d778e60d
No related branches found
No related tags found
No related merge requests found
......@@ -262,7 +262,7 @@ class IlastikObjectClassifierFromPixelPredictionsModel(IlastikModel, ImageToImag
raise InvalidInputImageError('Expecting input image and pixel probabilities to be the same shape')
pxch = kwargs.get('pixel_classification_channel', 0)
pxtr = kwargs.get('pixel_classification_threshold', 0.5)
mask = InMemoryDataAccessor(pxmap.get_one_channel_data(pxch).data > pxtr)
mask = img._derived_accessor(pxmap.get_one_channel_data(pxch).data > pxtr)
obmap, _ = self.infer(img, mask)
return obmap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment