Re: Bug in setPixels
Posted by Ilan on Apr 10, 2014; 6:41am
URL: http://imagej.273.s1.nabble.com/Bug-in-setPixels-tp5007255p5007267.html
Thanks Wayne. You are correct that the setStack solved the problem. Apparently this is some sort of strange combination of the copy constructor together with working on the original object. On slices off the currently viewed one the setPixels works on the original object. On the currently displayed slice it doesn't. So the setStack replaces the original stack object and solves the problem.
In any case, thanks for the advice. It wasn't something which I could have guessed on my own.
Ilan