Project

General

Profile

a file for stored image information

Added by @Maria Janssen almost 12 years ago

We have a automated reconstruction program that runs while taking regular CCD-images. Right now it calculates a map while taking DM3 images and it makes use of the information in the file header, eg pixelsize, voltage, Cs, etc. I was wondering if it was possible for Leginon to write out a file that contains all image information (for example one file upon taking the first image) that our reconstruction program can then grab and use for its calculations?


Replies (1)

RE: a file for stored image information - Added by Anchi Cheng almost 12 years ago

myami/leginon/imageprocessorexample.py is an example of doing something after each taget list chosen from a parent image is done. In this case print out filename of the images.

myami/leginon/fftmaker.py is an example of doing something after each image is acquired. In this case calculate power spectrum when its node setting "process" (shown in the gui as "Calculate FFT") is set to True.

Both of these need proper bindings in Leginon application to initiate the event. See Use_the_Application_Editor_to_create_Leginon_applications. You will find example of using the latter module and FFTMaker class in any MSI application as nodes "Exposure FFT" "Focus FFT".

I am moving this thread to Code Development since this is not an user question.

Anchi

    (1-1/1)