Giter Site home page Giter Site logo

pingjunchen / tissueloc Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 12.0 22.74 MB

Whole Slide Digital Pathology Image Tissue Localization

Home Page: https://tissueloc.readthedocs.io

License: MIT License

Python 90.48% TeX 9.52%
computational-pathology pathology pathology-image python tissue-localization whole-slide-imaging

tissueloc's Issues

How to plot tissue regions returned by locate_tissue_cnts

Hello,

I am wondering if you can help me. Trying to understand how your tissue locator works. It looks like the locate_tissue_cnts function returns a list of coordinates for the various detected tissue region and the down-sampling level which is clear.

For your test image, the function returns 3 regions. How do you plot these coordinates? Do you have any pointers how i can overlay the coordinates on the image to check the accuracy?

I ran your function on one of my test images and I got 16 tissue regions. I am trying to figure out how to plot these coordinates.

Thank you kindly!

ValueError: not enough values to unpack (expected 3, got 2)

When i use the Python package the same as the given demo ,I met a error as:
File "E:/Pycharm project/maching learning/HW2/Try.py", line 10, in
cnts,d_factor = tl.locate_tissue_cnts(slide_path,max_img_size=2048,smooth_sigma=13,thresh_val=0.80,min_tissue_size=10000)
File "C:\Users\17807\AppData\Roaming\Python\Python37\site-packages\tissueloc\locate_tissue.py", line 146, in locate_tissue_cnts
cnts = find_tissue_cnts(bw_remove)
File "C:\Users\17807\AppData\Roaming\Python\Python37\site-packages\tissueloc\locate_tissue.py", line 103, in find_tissue_cnts
method=cv2.CHAIN_APPROX_NONE)
ValueError: not enough values to unpack (expected 3, got 2)

How can I solve this error? thanks first!

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.