How to use the porespy.filters.find_disconnected_voxels function in porespy

To help you get started, we’ve selected a few porespy 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 PMEAL / porespy / test / unit / test_filters.py View on Github external
def test_find_disconnected_voxels_3d(self):
        h = ps.filters.find_disconnected_voxels(self.im)
        assert sp.sum(h) == 55
github PMEAL / porespy / test / unit / test_filters.py View on Github external
def test_find_disconnected_voxels_3d_conn6(self):
        h = ps.filters.find_disconnected_voxels(self.im, conn=6)
        assert sp.sum(h) == 202
github PMEAL / porespy / test / unit / test_filters.py View on Github external
def test_find_disconnected_voxels_2d_conn4(self):
        h = ps.filters.find_disconnected_voxels(self.im[:, :, 0], conn=4)
        assert sp.sum(h) == 652
github PMEAL / porespy / test / unit / test_filters.py View on Github external
def test_fill_blind_pores(self):
        h = ps.filters.find_disconnected_voxels(self.im)
        b = ps.filters.fill_blind_pores(h)
        h = ps.filters.find_disconnected_voxels(b)
        assert sp.sum(h) == 0
github PMEAL / porespy / test / unit / test_filters.py View on Github external
def test_find_disconnected_voxels_2d(self):
        h = ps.filters.find_disconnected_voxels(self.im[:, :, 0])
        assert sp.sum(h) == 477
github PMEAL / porespy / test / unit / test_filters.py View on Github external
def test_fill_blind_pores(self):
        h = ps.filters.find_disconnected_voxels(self.im)
        b = ps.filters.fill_blind_pores(h)
        h = ps.filters.find_disconnected_voxels(b)
        assert sp.sum(h) == 0