def METHOD_NAME(md, data_shape):
    x0, y0 = get_camera_roi_origin(md)
    if 'Splitter.Channel0ROI' in md.getEntryNames():
        xg, yg, wg, hg = md['Splitter.Channel0ROI']
        xr, yr, wr, hr = md['Splitter.Channel1ROI']
        #print 'Have splitter ROIs'
    else:
        xg = 0
        yg = 0
        wg = data_shape[0]
        hg = data_shape[1] / 2
        xr = 0
        yr = hg
        wr = data_shape[0]
        hr = data_shape[1] / 2
    #print yr, hr
    xg, wg = _bdsClip(xg, wg, x0, data_shape[0])
    xr, wr = _bdsClip(xr, wr, x0, data_shape[0])
    yg, hg = _bdsClip(yg, hg, y0, data_shape[1])
    yr, hr = _bdsClip(yr, hr, y0, data_shape[1])
    w = min(wg, wr)
    h = min(hg, hr)
    #print yg, hg, yr, hr
    if ('Splitter.Flip' in md.getEntryNames() and not md.getEntry('Splitter.Flip')):
        step = 1
        return (slice(int(xg), int(xg + w), 1), slice(int(xr), int(xr + w), 1), slice(int(yg), int(yg + h), 1), slice(int(yr), int(yr + h), step))
    else:
        step = -1
        return (slice(int(xg), int(xg + w), 1), slice(int(xr), int(xr + w), 1), slice(int(yg + hg-h), int(yg + hg), 1), slice(int(yr + h), int(yr - 1), step))