Patch extraction.