Comments (7)
The sobel and prewitt stencils look at the 1st and 2nd nearest neighbors. So a "bad" pixel would affect the gradient results of those neighbors. It may not be the best solution, but it seems these filters extend the mask to cover up this spreading.
That said, all the masking calculations can be moved into the if-block so that they don't affect the non-masked case. I'll take a crack at this and add some tests to actually check the masking behavior described above.
from scikit-image.
I would personally remove this functionality completely as it is a bit too magic and its behaviour is not described in the doc string.
from scikit-image.
The point of mask erosion is for when measuring edges/textures in a labeled
image, where one wants to ignore any values that aren't within the
foreground region. That's its original intent from the CellProfiler source.
I would fix the docstring, rather than remove the functionality.
from scikit-image.
I do not mean to remove the mask parameter, but the binary_erosion part. I find this quite confusing.
from scikit-image.
I think the erosion is probably necessary for some applications,
particularly if foreground and background intensities are widely separated.
Otherwise, foreground-background edges are likely to contaminate edge-based
texture calculations.
from scikit-image.
Yes, that makes sense. But we should definitely mention this in the doc string.
from scikit-image.
Docstring, tests, and refactor for these edge filters in PR #298.
from scikit-image.
Related Issues (20)
- typo in swirl default mode HOT 2
- Unexpected Output Channel Reduction in skimage.transform.rescale without Explicit channel_axis HOT 7
- Inconsistency in Default Values of shift_x and shift_y in skimage.filters.rank.mean_percentile HOT 3
- Documentation Error for cval Parameter in denoise_bilateral Function HOT 2
- BLD: Build nightly wheels using NumPy nightlies HOT 16
- ValueError when using flood_fill on Standard RGB Image HOT 2
- Detecting stacklevel for deprecation warnings is broken HOT 1
- `build_docs.yml` bloats size of scikit-image/docs with regular commits to ~1 GiB HOT 2
- Enable doctests by default?
- Faster map_array function HOT 5
- Align arguments for `draw.ellipse()` and `draw.ellipse_perimeter()` HOT 7
- Unsharp Mask on RGB Image Results in Black Image When channel_axis Specified HOT 2
- Expose dtypes from fused_numerics.pxd for test suite
- Docstring of `color.hsv_value` is incomplete HOT 3
- `draw.polygon2mask()`: bottom-left bias in rasterized polygon HOT 3
- Allow control over missing values in `util.map_array`
- order=0 `ski.transform.warp` does not utilize fast code path
- Bilateral filter 3D
- errr
- Error installing botright due to scikit_image-0.21.0.tar.gz metadata preparation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-image.