Beispiel #1
0
    def make_selector(self, roi, x, y):

        state = RoiSubsetState()
        state.roi = roi
        state.xatt = x.id
        state.yatt = y.id

        return state
def make_selector(roi, x, y):

    state = RoiSubsetState()
    state.roi = roi
    state.xatt = x.id
    state.yatt = y.id

    return state
Beispiel #3
0
    def apply_roi(self, roi):

        subset_state = RoiSubsetState()
        xroi, yroi = roi.to_polygon()
        x, y = self._get_plot_attributes()
        subset_state.xatt = x
        subset_state.yatt = y
        subset_state.roi = PolygonalROI(xroi, yroi)
        mode = EditSubsetMode()
        mode.update(self.data, subset_state, focus_data=self.display_data)
Beispiel #4
0
    def apply_roi(self, roi):

        subset_state = RoiSubsetState()
        xroi, yroi = roi.to_polygon()
        x, y = self._get_plot_attributes()
        subset_state.xatt = x
        subset_state.yatt = y
        subset_state.roi = PolygonalROI(xroi, yroi)
        mode = EditSubsetMode()
        mode.update(self.data, subset_state, focus_data=self.display_data)
Beispiel #5
0
 def make_selector(self, roi, source, y):
     """Selections coming from ImageJ correspond to a rectangle in x and y.
     Could propagate more complex selection criteria from image (e.g.,
     magic wand for nearest neighbors on barcode simplex)
     """
     state = RoiSubsetState()
     state.roi = roi
     state.xatt = source.id
     state.yatt = y.id
     return state
def make_selector(roi, full_path):
    if full_path:
        hit = roi.contains(timelines['x'], timelines['y']).any(axis=1)
        rids = timelines[hit].index.unique()
        return CategorySubsetState('run_id', rids)

    state = RoiSubsetState()
    state.xatt = 'x'
    state.yatt = 'y'
    state.roi = roi
    return state