Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alessiamarcolini
Copy link
Collaborator

@alessiamarcolini alessiamarcolini commented Oct 20, 2021

Description

This PR fixes rgb_to_hed filter and related (hematoxylin_channel, eosin_channel and dab_channel)

TODO:

  • fix NucleiScorer accordingly
  • fix CellularityScorer accordingly
  • fix ScoreTiler.locate_tiles accordingly
  • update figures in documentation

However, to enable possible roundtrip transformation, I had to change the np_to_pil function. Therefore there are some filters for which I need to recompute the expectations, listed below.

TODO 2:

  • adaptive_equalization
  • histogram_equalization
  • update figures in documentation

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Copy link
Member

@ernestoarbitrio ernestoarbitrio left a comment

Choose a reason for hiding this comment

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

as per comments

alessiamarcolini added a commit that referenced this pull request Oct 29, 2021
alessiamarcolini added a commit that referenced this pull request Nov 1, 2021
@alessiamarcolini alessiamarcolini added the bug Something isn't working label Nov 1, 2021
@alessiamarcolini alessiamarcolini added this to the 0.2.7 milestone Nov 1, 2021
alessiamarcolini added a commit that referenced this pull request Nov 2, 2021
@codecov
Copy link

codecov bot commented Nov 2, 2021

Codecov Report

Merging #334 (e07b6c6) into master (c4f75d3) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #334   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines         1305      1313    +8     
  Branches       128       128           
=========================================
+ Hits          1305      1313    +8     
Impacted Files Coverage Δ
histolab/scorer.py 100.00% <ø> (ø)
histolab/filters/image_filters.py 100.00% <100.00%> (ø)
histolab/filters/image_filters_functional.py 100.00% <100.00%> (ø)
histolab/util.py 100.00% <100.00%> (ø)

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 c4f75d3...e07b6c6. Read the comment docs.

Copy link
Member

@ernestoarbitrio ernestoarbitrio left a comment

Choose a reason for hiding this comment

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

👏🏽 👏🏽

@alessiamarcolini alessiamarcolini merged commit 37db202 into master Nov 3, 2021
@alessiamarcolini alessiamarcolini deleted the fix-hed-filter branch November 3, 2021 11:21
@alessiamarcolini alessiamarcolini linked an issue Nov 3, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conversion from RGB to HED must preserve HED color space range Re-write H&E filter

3 participants