Exemplo n.º 1
0
    def transform_coordinates(self, list_of_rois):
        new_list_of_rois = []
        for roi in list_of_rois:
            new_list_of_rois.append(
                np.flip(
                    CoordinateTransformations.transform(
                        np.flip(roi), self.transform)))

        return new_list_of_rois
Exemplo n.º 2
0
    def transform_coordinates(self, list_of_rois):
        laser = self.transform_for_laser_menu.selectedItems()[0].text()
        new_list_of_rois = []
        for roi in list_of_rois:
            new_list_of_rois.append(
                CoordinateTransformations.transform(roi,
                                                    self.transform[laser]))

        return new_list_of_rois
Exemplo n.º 3
0
    def transform_coordinates(self, list_of_rois, for_which_laser):
        """
        Receive a list of rois and targeted laser on which the DMD will be shined on, calculate the transformation.
        """
        new_list_of_rois = []
        for roi in list_of_rois:
            new_list_of_rois.append(
                CoordinateTransformations.transform(
                    roi, self.transform[for_which_laser]))

        return new_list_of_rois
Exemplo n.º 4
0
    def transform_coordinates(self, list_of_rois):
        """
        Given list of roi positions in camera image, transform into corrseponding
        voltage positions.

        Parameters
        ----------
        list_of_rois : list
            DESCRIPTION.

        Returns
        -------
        new_list_of_rois : TYPE
            DESCRIPTION.

        """
        new_list_of_rois = []
        for roi in list_of_rois:
            new_list_of_rois.append(np.flip(CoordinateTransformations.transform(np.flip(roi), self.transform)))
            
        return new_list_of_rois