Comments (7)
Confirmed with :
#include "CImg.h"
using namespace cimg_library;
int main(int argc, char **argv) {
CImg<unsigned char> img(256,256,256);
img.rand(0,255);
img.save("toto.tif");
CImg<float> imgf("toto.tif");
imgf.print();
return 0;
}
Working on a fix. Thanks for reporting.
from cimg.
Thank you again for your reactivity
from cimg.
Confirmed only when libtiff is not used.
If you define #define cimg_use_tiff
, then saving/reloading a 3d volumetric image works.
If you don't, then the tif is saved using an external call to ImageMagick or GraphicsMagick, and converted from a .ppm, so yes that cannot save multiple slices in this case.
from cimg.
What I can do is add a Warning message when trying to save a volumetric image using an external call to ImageMagick or GraphicsMagick. At least the user could understand what happens.
from cimg.
Well yes it happens only if #define cimg_use_tiff is not defined. I checked in a separate test case.
I thought I was using libtiff in my project, don't know why the #define cimg_use_tiff is not taken into account here.
However, the warning message seems a good idea. Thanks again.
from cimg.
Make sure you have defined the macro cimg_use_tiff
before including CImg.h
, it's a common mistake to place the define after the inclusion, and this does not work in this case.
from cimg.
Yes, I know that. Seems something else.
I close the thread.
from cimg.
Related Issues (20)
- 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
- Lanczos versus cubic interpolation
- Reading DNG file with libRaw and passing it to Cimg HOT 1
- Documentation error - Bezier to Hermite conversion
- Making function next(), and back(). Basically, they use nexttoward. HOT 1
- Alpha-Aware Resize HOT 1
- Is it really necessary to specify pattern? HOT 1
- Binary literal bug. HOT 4
- Allow Cimg::get_warp output CImg to be provided 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.