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))
| 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}) |