def read_region_as_imagecoord(s, header):
rp = RegionParser()<EOL>ss = rp.parse(s)<EOL>sss1 = rp.convert_attr(ss)<EOL>sss2 = _check_wcs(sss1)<EOL>sss3 = rp.sky_to_image(sss2, header)<EOL>shape_list = rp.filter_shape(sss3)<EOL>return ShapeList(shape_list)<EOL>
Read region as image coordinates.

    Parameters
    ----------
    s : str
        Region string
    header : `~astropy.io.fits.Header`
        FITS header

    Returns
    -------
    shapes : `~pyregion.ShapeList`
        List of `~pyregion.Shape`