def load_Z_stack(image,c,t,x,y,w,h):
    """
    Call planes in rectangle ROI from OMERO
    Inputs:
        image: OMERO ImageWrapper
        c: int, channel
        t: int, time point
        x: float, x corner of ROI
        y: float, y corner of ROI
        width: int, width of ROI
        height: int, height of ROI
    Outputs:
        stack: generator of image planes
    """
    size_z = image.getSizeZ()
    # list of [ (0,0,0,(x,y,w,h)), (1,0,0,(x,y,w,h)), (2,0,0,(x,y,w,h))... ]
    zct_list = [(iz, c, t,(x,y,w,h)) for iz in range(size_z)]
    pixels = image.getPrimaryPixels()
    stack = pixels.getTiles(zct_list)
    return stack