Open ferdymercury opened 2 years ago
As I said on the forum img2pad.C
is ok. Have you tried it?
Good point. So maybe the issue is rather in the function "FromPad" rather than in the function "Flip", because the following works:
TASImage *img = new TASImage("$ROOTSYS/tutorials/image/rose512.jpg");
img->Flip(0);
whereas the following only works in interactive mode:
TASImage *img = new TASImage();
img->FromPad(c1);
img->Flip(0);
TASImage is some external code. It is kind of frozen these days. This issue will be hard to fix. Is it a blocker for you?
Hi, thanks, I think this question should be asked to the original user (quzn) that reported the problem: https://root-forum.cern.ch/t/bug-of-tasimage-when-use-tasimage-flip/50827
Thanks, I left a comment in the forum post.
Describe the bug
TASImage::FromPad + TASImage::Flip does not work in batch mode, no matter the rotation angle.
Expected behavior
It should work also in batch mode.
To Reproduce
Run the code in batch mode below to get a black output. Comment the line
Flip(0)
and you'll get the correct output.Setup
Additional context
https://root-forum.cern.ch/t/bug-of-tasimage-when-use-tasimage-flip/50827/ https://root-forum.cern.ch/t/timage-rendered-in-black-in-batch-not-in-interactive-mode/16781