python read()读取图片_可以python sitk.ReadImage读取列表/系列图像吗?

我不明白sitk.ReadImage是否可以读取或不读取图像列表?我没有设法找到一个示例显示如何列出图像应该输入到函数。

但是在功能文件中它说:

ReadImage(**VectorString fileNames**, itk::simple::PixelIDValueEnum outputPixelType) -> Image

ReadImage(std::string const & filename, itk::simple::PixelIDValueEnum outputPixelType) -> Image

ReadImage is a procedural interface to the ImageSeriesReader class which is convenient for most image reading tasks.

Note that when reading a series of images that have meta-data

associated with them (e.g. a DICOM series) the resulting image will

have an empty meta-data dictionary. It is possible to programmatically

add a meta-data dictionary to the compounded image by reading in one

or more images from the series using the ImageFileReader class,

analyzing the meta-dictionary associated with each of those images and

creating one that is relevant for the compounded image.所以

你可能感兴趣的:(python,read()读取图片)