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

Confirms that ilastik pixel object already works with multichannel input

parent 0bd3a302
Branches
Tags
2 merge requests!50Release 2024.06.03,!40ilastik workflow and API allow multichannel inputs
......@@ -344,6 +344,15 @@ class TestIlastikOnMultichannelInputs(TestServerBaseClass):
mod = ilm.IlastikPixelClassifierModel(params={'project_file': self.pa_px_classifier})
pxmap = mod.infer(self.input_image)[0]
self.assertEqual(pxmap.hw, self.input_image.hw)
self.assertEqual(pxmap.nz, self.input_image.nz)
return pxmap
def test_classify_objects(self):
pxmap = self.test_classify_pixels()
mod = ilm.IlastikObjectClassifierFromPixelPredictionsModel(params={'project_file': self.pa_ob_classifier})
obmap = mod.infer(self.input_image, pxmap)[0]
self.assertEqual(obmap.hw, self.input_image.hw)
self.assertEqual(obmap.nz, self.input_image.nz)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment