MCPcopy Create free account
hub / github.com/LabPy/lantz / set_image

Method set_image

lantz/drivers/andor/ccd.py:860–881  ·  view source on GitHub ↗

This function will set the horizontal and vertical binning to be used when taking a full resolution image. :param hbin: number of pixels to bin horizontally. :param vbin: number of pixels to bin vertically. :param hstart: Start column (inclusive). :param hend

(self, shape=None, binned=(1, 1), p_0=(1, 1))

Source from the content-addressed store, hash-verified

858
859 @Action()
860 def set_image(self, shape=None, binned=(1, 1), p_0=(1, 1)):
861 """This function will set the horizontal and vertical binning to be
862 used when taking a full resolution image.
863
864 :param hbin: number of pixels to bin horizontally.
865 :param vbin: number of pixels to bin vertically.
866 :param hstart: Start column (inclusive).
867 :param hend: End column (inclusive).
868 :param vstart: Start row (inclusive).
869 :param vend: End row (inclusive).
870 """
871
872 if shape is None:
873 shape = self.detector_shape
874
875 (hbin, vbin) = binned
876 (hstart, vstart) = p_0
877 (hend, vend) = (p_0[0] + shape[0] - 1, p_0[1] + shape[1] - 1)
878
879 self.lib.SetImage(ct.c_int(hbin), ct.c_int(vbin),
880 ct.c_int(hstart), ct.c_int(hend),
881 ct.c_int(vstart), ct.c_int(vend))
882
883 @Feat(values={'FVB': 0, 'Multi-Track': 1, 'Random-Track': 2,
884 'Single-Track': 3, 'Image': 4})

Callers 1

ccd.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected