How to use the miscnn.data_loading.interfaces.NIFTI_interface function in miscnn

To help you get started, we’ve selected a few miscnn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github frankkramer-lab / MIScnn / tests / test_iointerfaces.py View on Github external
def test_IOI_NIFTI_predictionhandling(self):
        interface = NIFTI_interface(pattern="nifti")
        sample_list = interface.initialize(self.tmp_data.name)
        interface.save_prediction(self.seg, "pred.nifti", self.tmp_data.name)
        pred = interface.load_prediction("pred.nifti", self.tmp_data.name)
        self.assertTrue(np.array_equal(pred, self.seg))
github frankkramer-lab / MIScnn / tests / test_iointerfaces.py View on Github external
def test_IOI_NIFTI_initialize(self):
        interface = NIFTI_interface(pattern="nifti")
        sample_list = interface.initialize(self.tmp_data.name)
        self.assertEqual(len(sample_list), 1)
        self.assertEqual(sample_list[0], "nifti")
    # Loading Images and Segmentations
github frankkramer-lab / MIScnn / tests / test_iointerfaces.py View on Github external
def test_IOI_NIFTI_creation(self):
        interface = NIFTI_interface()
    # Initialization
github frankkramer-lab / MIScnn / tests / test_iointerfaces.py View on Github external
def test_IOI_NIFTI_loading(self):
        interface = NIFTI_interface(pattern="nifti")
        sample_list = interface.initialize(self.tmp_data.name)
        img = interface.load_image(sample_list[0])
        seg = interface.load_segmentation(sample_list[0])
        details = interface.load_details(sample_list[0])
        self.assertTrue(np.array_equal(img, self.img))
        self.assertTrue(np.array_equal(seg, self.seg))
    # NIFTI_interface - Loading and Storage of Predictions