Skip to content

Conversation

@shaneahmed
Copy link
Member

  • Add feature to read a region from whole slide image in WSIReader class.
  • Add the option to display or save specific region from whole slide images using command line

shaneahmed added 16 commits July 2, 2020 19:55
Add feature read_region to WSIReader class in wsireader.py
Configure setup.py
Rearrange examples in doc to be within 88 characters
Add test read_region and slide_info directly through WSIReader object.
Fix travis bug due to image path.
Add command line for read regions
Fix travis bug for read region
Fix travis bug for read region
Fix Travis bug
Fix Travis bug
Fix Travis bug
Fix Travis bug file list empty
Add command line test for read region
Fix docstring for test_wsireader_read_region
Fix Travis error for command line read region
Update docstring
@shaneahmed shaneahmed requested review from John-P and simongraham July 2, 2020 23:23
Update docstring to fix issues with Sphinx build
@codecov
Copy link

codecov bot commented Jul 2, 2020

Codecov Report

Merging #10 into develop will increase coverage by 20.56%.
The diff coverage is 67.74%.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop      #10       +/-   ##
============================================
+ Coverage    56.55%   77.12%   +20.56%     
============================================
  Files            9        9               
  Lines          122      153       +31     
  Branches         9       14        +5     
============================================
+ Hits            69      118       +49     
+ Misses          50       25       -25     
- Partials         3       10        +7     
Impacted Files Coverage Δ
tiatoolbox/dataloader/slide_info.py 35.71% <ø> (ø)
tiatoolbox/utils/misc.py 76.00% <60.00%> (+21.00%) ⬆️
tiatoolbox/cli.py 76.47% <61.90%> (-10.20%) ⬇️
tiatoolbox/dataloader/wsireader.py 91.89% <100.00%> (+73.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2316b9d...e7718a2. Read the comment docs.

@shaneahmed shaneahmed added the enhancement New feature or request label Jul 3, 2020
John-P and others added 9 commits July 3, 2020 10:49
Merge pull request #5 from docs-readthedocs-config

Create Read the Docs configuration file (.readthedocs.yml) specifying to use conda setup to create environment using requiremetns.conda.yml.

- Add Conda Forge OpenSlide To Requirements
- Add OpenSlide to conda requirements file.
- Add Pixman < 0.38.0 (0.38.0 breaks OpenSlide).
- Removed version numbers from others so that latest is used.
- Pin Setup Tools Verions <= 45.1
- Pin OpenCV Version >4.0 In Conda Requirements File
- Add requirements.txt and requirements.win64.conda.yml
- Modify setup.py to add dependencies
- Make version numbers for various packages in requirements and conda yaml consistent. Pin version numbers if necessary.

Co-authored-by: shaneahmed <sa>
Add feature read_region to WSIReader class in wsireader.py
Rearrange examples in doc to be within 88 characters
Add test read_region and slide_info directly through WSIReader object.
Fix travis bug due to image path.
Add command line for read regions
Fix travis bug for read region
Fix travis bug for read region
Fix Travis bug
shaneahmed added 9 commits July 3, 2020 14:22
Fix Travis bug
Fix Travis bug
Fix Travis bug file list empty
Add command line test for read region
Fix docstring for test_wsireader_read_region
Fix Travis error for command line read region
Update docstring
Update docstring to fix issues with Sphinx build
Copy link
Contributor

@John-P John-P left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good to me. Just that one minor point about the naming of the function to write to disk. I suggested keeping a neutral rather than specifying that is uses cv2 in case we change it to use a different / multiple libraries later e.g. we might find that the Nvidia libraries are faster and can swap it out etc. and the name would still make sense.

shaneahmed added 3 commits July 3, 2020 15:25
Replace cv2_imwrite with imwrite for flexibility
Update usage.rst to include imwrite in doc
Update README.rst to update `pip install -r requirements.txt` instead of `pip install requirements_dev.txt`
Copy link
Contributor

@simongraham simongraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall- looks good -> few very minor things to consider before merging.

@shaneahmed shaneahmed merged commit 75109d3 into develop Jul 8, 2020
@shaneahmed shaneahmed deleted the feature-read-region branch July 8, 2020 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants