How to trim an oddly shaped camera
Added by Scott Stagg over 16 years ago
Hi all,
I have an oddly shaped camera on one of our microscopes. It is 2084 x 2084 pixels. The funny dimensions cause a few problems with Leginon, the biggest of which is that dose measurement seems to require the ability to take a 512X512 image. I would be happy to cut out those extra pixels and just have it be a 2048 x 2048 camera, and that would solve all the problems. How would you suggest that I go about doing this? The camera, by the way is a Tietz.
Thanks,
Scott
Replies (1)
- Added by Jim Pulokas over 16 years ago
For other cases like this, I have hard coded the desired size into tietz.py. This is not ideal, but it works for now. In the getCameraSize function, change:
x = self._getParameterValue('cpTotalDimensionX') y = self._getParameterValue('cpTotalDimensionY')to
x = 2048 y = 2048Another approach, which I have not tried, may be to modify camc.ini (I think that is the file) which may have some way to specify the camera size.
I think my favorite solution would be to make this override of camera size be put into the database.