def from_image(self, image, surface='<STR_LIT>', affine=None, method=None, fill=<NUM_LIT:0>, dtype=None,<EOL>native_to_vertex_matrix=None, weights=None):
mesh = geo.to_mesh((self, surface))<EOL>return mesh.from_image(image, affine=affine, method=method, fill=fill, dtype=dtype,<EOL>native_to_vertex_matrix=native_to_vertex_matrix, weights=weights)<EOL>
cortex.from_image(image) is equivalent to cortex.midgray_surface.from_image(image).
cortex.from_image(image, surface) uses the given surface (see also cortex.surface).