Comments (3)
I found something similar for OpenGL https://www.opengl.org/wiki/Common_Mistakes#Texture_edge_color_problem. It might be worth taking a look at how other APIs do it.
from imageproc.
Thanks, I'll take a look. I know VLFeat allows zero or continuity padding. I've never looked into how this sort of thing is done in graphics libraries before.
from imageproc.
This has come up in working on #217. Regarding implementations for a custom border condition, I thought I'd mention two approaches that I've come across so far:
skimage._shared.interpolation.get_pixel3d - This is a function for retrieving a single pixel which takes into account the preferred boundary type. So in a given op, the border type is made use of when indexing the image, as indices exceeding the image size bounds can be passed to the function.
cv::copyMakeBorder - OpenCV's approach appears to be a padding of the image given the preferred border type prior to indexing the image.
I wonder if the skimage approach is cleaner, given that padding the image before ops requires efforts to avoid the added border when iterating across the image indices, which adds extra code and complication to every function needing a boundary condition. Although there might be speed considerations that I'm not aware of.
from imageproc.
Related Issues (20)
- `warp_inner()` and `equalize_histogram_mut()` should be two functions based on `rayon` feature HOT 1
- migrate from `quickcheck` to `proptest`
- How does this crate compare to magick-rust? HOT 2
- Try using doc_auto_cfg to automate addition of docrs attributes
- Rename `imageproc::map::map_colors()` to `map_pixels()` HOT 2
- Another doc-macro for parallel variations of functions?
- `Rect` refactors HOT 2
- Add filter benchmarks for kernels larger than 3x3
- Add hardcoded filter3x3 function to benchmark current generic filter function against HOT 19
- Switch `imageproc::Rect` to `image::Rect` HOT 3
- `Laplacian` from `master` is wrong HOT 4
- Check for any functions missing tests
- Use `Kernel` by `ref` HOT 2
- Document release process
- Agree a sensible API for filtering so we can reduce the risk of frequent breaking changes to signatures HOT 3
- Fix filter performance vs simple hardcoded implementation
- Add Tags for all previous releases where possible HOT 2
- Decide module layout for new imageops functions HOT 1
- how encode drawed image to [u8] ? HOT 6
- Rounded corners on rectangles and images HOT 4
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 imageproc.