Questions about Bug #2670 DM 2.30 image orientation change when saving frames
Added by Mario Borgnia over 10 years ago
Anchi,
I have followed the solution described in #2670. With our post-GIF K2 setup we have to change the cameraid in order for dmsem.py to recognize the Orius and K2 which in our system are 1(0) and 1(2) respectively. I downloaded the new version of dmsem.py and modified it following the instructions, plus the cameraid. However, we still get the same error about the size mismatch. Are there other parameters that we need to worry about?
Thanks
Mario
Comment
There is a discrepancy between the orientation of the integrated image depending on whether frames are saved or not. I have tested this in both super-resolution and counting modes. The orientation of the integrated images shown on the leginon screen with and without frame writing are flipped and rotated 90 degrees from each other.
So I guess:
< if isDM230 and self.save_frames or self.align_frames: < tmpheight = height < height = width < width = tmpheight
does not address the orientation issue.
Replies (3)
RE: Questions about Bug #2670 DM 2.30 image orientation change when saving frames - Added by Anchi Cheng over 10 years ago
What is the exact version you have? The fix did work for 2.30.542.0. Could you give me a screen shot of the Leginon Client python window output with and without frame saving ?
RE: Questions about Bug #2670 DM 2.30 image orientation change when saving frames - Added by Anchi Cheng over 10 years ago
One more question. DId you change orientation of the K2 in camera configuration to flip and rotate 270 degrees ? The assumption in the code assumes you do so. Could it be that you didn't have to do such flip/rotation as we do because it is post GIF ?
We recommend the orientation for a reason See Leginon_image_orientation. But if you don't care about that, search dmsem.py for the word "flip", then you will find the part of the code that does this. You can deactivated it.
RE: Questions about Bug #2670 DM 2.30 image orientation change when saving frames - Added by Anchi Cheng over 10 years ago
From Mario
I did not have to rotate or flip the image in our post gif camera. It all works. perfectly in counting mode.
I will make some change in the code to account for this possibility in the future then.