def test_missingRoiBoundary2(self):
     data = FMDLData()
     
     
     data.config = Config(
                 {'minContourArea': 8000,'roiBoundaryPointsReductionFactor': 0.01,
                 "intersectingRoiMaxIterations": 5, "intersectingRoiStepSize": 0.001,},
                 [('intersectingRoiStepSize', 0.00001, 0.1, 'float'),
                 ('intersectingRoiMaxIterations', 0, 100, 'integer'),
                 ('minContourArea', 10, 100000, 'integer'),
                 ('roiBoundaryPointsReductionFactor',0.001, 0.1, 'float'),])
     
     areIntersecting = areRoiBoundaryPointsIntersecting([])
     
     self.assertTrue(areIntersecting)
    def test_outputs_notInteresecting2(self):
        data = FMDLData()
        
        data.approximated_roi_boundary = self.groundTruth_approximated_roi_boundary

        data.config = Config(
                    {'minContourArea': 8000,'roiBoundaryPointsReductionFactor': 0.01,
                    "intersectingRoiMaxIterations": 10, "intersectingRoiStepSize": 0.001,},
                    [('intersectingRoiStepSize', 0.00001, 0.1, 'float'),
                    ('intersectingRoiMaxIterations', 0, 100, 'integer'),
                    ('minContourArea', 10, 100000, 'integer'),
                    ('roiBoundaryPointsReductionFactor',0.001, 0.1, 'float'),])
        

        areIntersecting = areRoiBoundaryPointsIntersecting(data.approximated_roi_boundary[:,0,:])

        
        self.assertFalse(areIntersecting)