Comments (4)
Perhaps add a Pixel
type which could mutate the pixel by using mutable borrowed pointers internally.
from image.
Yes. First we have to agree on how the Pixel API should look like. I'm not sure how to do it most elegant. Rust does not allow values in generics and does not support higher-order types which makes it a bit messy supporting n-bits/channel and different color channels at the same time.
from image.
If we had a Pixel
trait then we could add a generic parameter to the iterator.
Image format would then have a .iter()
and .iter_mut()
which returned a pixel iterator.
The user reads or sets values in the same way by using the Pixel
trait.
from image.
I think this has been does already.
from image.
Related Issues (20)
- Add possibility to extract an alpha channel as a separate luma image HOT 2
- InsufficientMemory error while trying to decode HOT 3
- Implementation of `size_hint` for `ImageBuffer` iterators should return the same as the `ExactSizeIterator::len` impl.
- Raj
- Need an API to return the bytes of image instead of saving it over a file. HOT 2
- Do I have to save the file? Is it possible to directly pass through ImageBuffer to png? I hope to get one vec[u8]
- Usability of FlatSamples HOT 1
- Saving webcam frame from nokhwa crate fails HOT 2
- image::load_from_memory goes wrong while image::save_buffer works HOT 11
- Add Export feature on dynamic_map macro HOT 5
- How to send Vec<u8> to flutter? HOT 2
- how can i convert DynamicImage to an base64 format
- Gif decoding hangs forever if invalid frame is encountered
- when handle 16bit grayscale images, DynamicImage::inner_bytes() does not work correctly HOT 2
- Decoding TIFF images as 1 bit black/white images with Fax4 compression HOT 4
- iphone screen shot(png) fails to decode HOT 5
- Unclear return values for GenericImageView::bounds
- Implement compression control in other formats HOT 2
- Access ICC profile data HOT 1
- Fails to build with lto=true in aarch64 architectures. HOT 2
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 image.