def METHOD_NAME(md, data_shape, x, y):
    vx, vy, _ = md.voxelsize_nm
    x0, y0 = get_camera_roi_origin(md)
    if False: #'Splitter.Channel0ROI' in md.getEntryNames():
        xg, yg, w, h = md['Splitter.Channel0ROI']
        xr, yr, w, h = md['Splitter.Channel1ROI']
    else:
        xg, yg, w, h = 0, 0, data_shape[0], data_shape[1]
        xr, yr = w, h
    xn = x + (xr - xg)
    yn = y + (yr - yg)
    if md.get('Splitter.Flip', True):#not (('Splitter.Flip' in md.getEntryNames() and not md.getEntry('Splitter.Flip'))):
        yn = (h - y0 - y) + yr - yg
    #chromatic shift
    if 'chroma.dx' in md.getEntryNames():
        dx = md['chroma.dx'].ev((x + x0) * vx, (y + y0) * vy) / vx
        dy = md['chroma.dy'].ev((x + x0) * vx, (y + y0) * vy) / vy
        xn -= dx
        yn -= dy
    return xn, yn