Comments (2)
That is correct indeed.
There is anyway a simple method to get an image from multiplexed buffer that uses the method CImg<T>::permute_axes()
:
CImg<unsigned char> img(buffer,S,W,H);
img.permute_axes("YZCX");
where S is the final spectrum() (so 3 for a RGB color image), W and H are the final width and height of the image.
I'll fix the doc asap. Thanks.
from cimg.
Thank you very much for this quick answer and solution - I can confirm it works with permute_axes. :)
from cimg.
Related Issues (20)
- Drawing functions with floating point coordinates
- 【Algorithm】How should I make an Image sequence by order of Z? HOT 1
- How to ensure compilation and functionality with `-fno-exceptions`?
- Can I get a sample code for perspective transforming an image using cimg?
- Load image from memory
- Failed to recognize format of file X
- CImg in VS2010 MFC Project HOT 3
- log contaminates global namespace HOT 12
- warning: null destination pointer HOT 10
- C++20 compilation leads to segmentation fault in erode and dilate HOT 5
- Compilation errors with _fill(expression) method HOT 3
- Is there any method to compute SSIM? HOT 1
- Undefined behaviour and correctness discrepancy while parsing a BMP file HOT 7
- [Enhancement] Feature request: L2 norm across z for CImg objects, L2 across depth for CImgList objects
- Support for BGR image interleaved. HOT 3
- Cant find how to include modules without errors in the header files.
- get_MAT returns empty Mat
- ImageMagick: CImg.h: In member function 'cimg_library::CImg<T>& cimg_library::CImg<T>::load_magick(const char*)':
- Explicit instantiation bug of `CImgList` HOT 1
- CVE-2024-26540: heap-buffer-overflow in load_analyze(...) HOT 5
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 cimg.