Giter Site home page Giter Site logo

Comments (6)

mdrkok avatar mdrkok commented on May 23, 2024

Not sure if that;s intentional but as far as I can tell they perform identical functions

from porespy.

Zohaib-Atiq avatar Zohaib-Atiq commented on May 23, 2024

trim_floating_solids was made to remove floating solids from image. It is also used in trim_non_percolating_paths function.
I agree that they will currently output the same thing and it is because of a bug inside trim_floating_solids. So line im[holes] = True should be im[holes] = False. Which means also a small change in trim_non_percolating_paths. I will do it and push the changes if all agree.

from porespy.

Zohaib-Atiq avatar Zohaib-Atiq commented on May 23, 2024

figure_1

from porespy.

Zohaib-Atiq avatar Zohaib-Atiq commented on May 23, 2024

Ignore my above comments. @mdrkok these two functions are behaving differently with the current implementation. They look the same but have a different meaning. The purple is the solid phase with zero's label.

from porespy.

Zohaib-Atiq avatar Zohaib-Atiq commented on May 23, 2024

@jgostick While doing this test I also observed one thing. When we run these function the input image also changes.
For example when we do
im_fill_blind_pores = ps.filters.fill_blind_pores(im)
Check
plt.imshow(im)
plt.imshow(im_im_fill_blind_pores)
gives same image. So I think a copy of image should be used to mask it with holes and then we should return masked copy as output. like

def fill_blind_pores(im):
   holes = find_disconnected_voxels(im)
   new_im = im.copy()
   new_im[holes] = False
   return new_im

Not sure if I am the only one facing this issue.

from porespy.

jgostick avatar jgostick commented on May 23, 2024

It seems the functions work ok, but the issue about not copying the input is a problem. I will open a separate issue about that.

from porespy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.