ImageD11.labelimage module#

ImageD11.labelimage.flip1(x, y)#

fast, slow to dety, detz

ImageD11.labelimage.flip2(x, y)#

fast, slow to dety, detz

ImageD11.labelimage.flip3(x, y)#

fast, slow to dety, detz

ImageD11.labelimage.flip4(x, y)#

fast, slow to dety, detz

ImageD11.labelimage.flip5(x, y)#

fast, slow to dety, detz

ImageD11.labelimage.flip6(x, y)#

fast, slow to dety, detz

ImageD11.labelimage.flip7(x, y)#

fast, slow to dety, detz

ImageD11.labelimage.flip8(x, y)#

fast, slow to dety, detz

class ImageD11.labelimage.labelimage(shape, fileout=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, spatial=<ImageD11.blobcorrector.perfect object>, flipper=<function flip2>, sptfile=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)#

Bases: object

For labelling spots in diffraction images

finalise()#

Write out the last frame

format = '  %.4f  %.4f  %.4f  %.0f  %.4f  %.4f  %.4f  %.4f  %.4f  %.4f  %.4f  %.4f  %.4f  %.4f  %.4f  %.4f  %.0f  %.0f  %.4f  %.0f  %.0f  %.0f  %.0f  %.4f  %.4f  %.4f  %.4f  %d  %d  %d\n'#
labelpeaks(data, threshold)#
measurepeaks(data, omega, blim=None)#
mergelast()#

Merge the last two images searches

output2dpeaks(file_obj)#

Write something compatible with the old ImageD11 format which fabian is reading. This is called before mergelast, so we write self.npk/self.res

outputpeaks(peaks)#

Peaks are in Numeric arrays nowadays

peaksearch(data, threshold, omega)#

# Call the c extensions to do the peaksearch, on entry: # # data = 2D Numeric array (of your data) # threshold = float - pixels above this number are put into objects

titles = '#  sc  fc  omega  Number_of_pixels  avg_intensity  s_raw  f_raw  sigs  sigf  covsf  sigo  covso  covfo  sum_intensity  sum_intensity^2  IMax_int  IMax_s  IMax_f  IMax_o  Min_s  Max_s  Min_f  Max_f  Min_o  Max_o  dety  detz  onfirst  onlast  spot3d_id\n'#