mpicbg
mpicbg copied to clipboard
Stack_Rotate: after press Esc button, the pixels on the current slice is broken, it is just like the dragged result a while ago.
Hi, in Stack_Rotate.java
"ESC - Return to the original stack." The result is that after press Esc button, the pixels on the current slice is broken, it is just like the dragged result a while ago.
Below is my guess, but I am not very sure if it is correct. The reason is probably that near lin 232:
final Object targetPixels = target.getPixels();
target.setPixels( temp.getPixels() );
temp.setPixels( targetPixels );
imp.updateImage();
The mapped pixels is written into temp, then the original pixels (target) is extracted as backup (targetPixels), then the temp is applied to the target. Then the vacant temp is used to accept the backup targetPixels. Perhaps this targetPixels are not reused, thus brokens the final slice before pressing Esc?