@@ -2205,3 +2205,90 @@ class LegacyConvertedEnhancedMRImage(_CommonLegacyConvertedEnhancedImage):
22052205 _MODALITY_NAME = "MR"
22062206 _LEGACY_SOP_CLASS_UID = "1.2.840.10008.5.1.4.1.1.4"
22072207 _ENHANCED_SOP_CLASS_UID = "1.2.840.10008.5.1.4.1.1.4.4"
2208+
2209+
2210+ def lcectimread (
2211+ fp : str | bytes | PathLike | BinaryIO ,
2212+ lazy_frame_retrieval : bool = False
2213+ ) -> LegacyConvertedEnhancedCTImage :
2214+ """Read an LegacyConvertedEnhancedCTImage from DICOM file.
2215+
2216+ Parameters
2217+ ----------
2218+ fp: Union[str, bytes, os.PathLike]
2219+ Any file-like object representing a DICOM file containing an
2220+ Legacy Converted Enhanced CT Image.
2221+ lazy_frame_retrieval: bool
2222+ If True, the returned image will retrieve frames from the file as
2223+ requested, rather than loading in the entire object to memory
2224+ initially. This may be a good idea if file reading is slow and you are
2225+ likely to need only a subset of the frames in the image.
2226+
2227+ Returns
2228+ -------
2229+ highdicom.legacy.LegacyConvertedEnhancedCTImage:
2230+ Image read from the file.
2231+
2232+ """
2233+ return LegacyConvertedEnhancedCTImage .from_file (
2234+ fp ,
2235+ lazy_frame_retrieval = lazy_frame_retrieval
2236+ )
2237+
2238+
2239+ def lcemrimread (
2240+ fp : str | bytes | PathLike | BinaryIO ,
2241+ lazy_frame_retrieval : bool = False
2242+ ) -> LegacyConvertedEnhancedMRImage :
2243+ """Read an LegacyConvertedEnhancedMRImage from DICOM file.
2244+
2245+ Parameters
2246+ ----------
2247+ fp: Union[str, bytes, os.PathLike]
2248+ Any file-like object representing a DICOM file containing an
2249+ Legacy Converted Enhanced MR Image.
2250+ lazy_frame_retrieval: bool
2251+ If True, the returned image will retrieve frames from the file as
2252+ requested, rather than loading in the entire object to memory
2253+ initially. This may be a good idea if file reading is slow and you are
2254+ likely to need only a subset of the frames in the image.
2255+
2256+ Returns
2257+ -------
2258+ highdicom.legacy.LegacyConvertedEnhancedMRImage:
2259+ Image read from the file.
2260+
2261+ """
2262+ return LegacyConvertedEnhancedMRImage .from_file (
2263+ fp ,
2264+ lazy_frame_retrieval = lazy_frame_retrieval
2265+ )
2266+
2267+
2268+ def lcepetimread (
2269+ fp : str | bytes | PathLike | BinaryIO ,
2270+ lazy_frame_retrieval : bool = False
2271+ ) -> LegacyConvertedEnhancedPETImage :
2272+ """Read an LegacyConvertedEnhancedPETImage from DICOM file.
2273+
2274+ Parameters
2275+ ----------
2276+ fp: Union[str, bytes, os.PathLike]
2277+ Any file-like object representing a DICOM file containing an
2278+ Legacy Converted Enhanced PET Image.
2279+ lazy_frame_retrieval: bool
2280+ If True, the returned image will retrieve frames from the file as
2281+ requested, rather than loading in the entire object to memory
2282+ initially. This may be a good idea if file reading is slow and you are
2283+ likely to need only a subset of the frames in the image.
2284+
2285+ Returns
2286+ -------
2287+ highdicom.legacy.LegacyConvertedEnhancedPETImage:
2288+ Image read from the file.
2289+
2290+ """
2291+ return LegacyConvertedEnhancedPETImage .from_file (
2292+ fp ,
2293+ lazy_frame_retrieval = lazy_frame_retrieval
2294+ )
0 commit comments