Coder Social home page Coder Social logo

Comments (6)

YubinXie avatar YubinXie commented on July 4, 2024 1

You are right! I thought it is on wsi tissue level. Obviously it is in pixel level within each tile. Thank you. All look great now!

from pathml.

jacob-rosenthal avatar jacob-rosenthal commented on July 4, 2024

Can you check if the backend is working? i.e. does extract_region() return the correct images?

from pathml.

YubinXie avatar YubinXie commented on July 4, 2024

Can you check if the backend is working? i.e. does extract_region() return the correct images?

Hi Jacob! Thanks for your timely reply. I just found it was not all black. There are some real images. I think I must be confused on how the pipeline works and how the data is stored. The resulted h5 file from the pipeline has some real images but it is unclear to me how to find them. Is there a filter function? What is the best document for me to check this. I read all the tutorials and they are fairly simple and it did not mention these details. Many thanks!

from pathml.

jacob-rosenthal avatar jacob-rosenthal commented on July 4, 2024

Great, glad to hear that. I'll remove the bug label then.

When a pipeline is run, all the tiles will be extracted and put into h5. So depending on the tile size, you could end up with some blank tiles - for example, around the edges of the whole slide image, where there's no tissue and it's just blank.
One thing you could do next is try filtering out all the empty tiles. After running the pipeline and populating wsi.tiles, you can just loop through wsi.tiles and for each tile, check whether to keep it or not (e.g. based on pixel values, or the tile mask from tissue detection, etc.) and delete the tiles you don't want.

Hope this is helpful or at least points in the right direction!

from pathml.

YubinXie avatar YubinXie commented on July 4, 2024

Thanks Jacob. The plan sounds good. One issue I noticed is that in my pipeline I have TissueDetectionHE(mask_name = "tissue") and the resulting data actually has 0 masks in it. Do you know what could be the issue? I'd like to filter out the non-tissue tiles based on this.

from pathml.

jacob-rosenthal avatar jacob-rosenthal commented on July 4, 2024

Each tile should have a mask, which can be accessed by e.g. wsi.tiles[0].masks["tissue"]

from pathml.

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.