dlt.hdr¶
imread¶
-
dlt.hdr.
imread
(filename)¶ Reads an image file from disk into a Numpy Array (OpenCV view).
Parameters: filename (str) – Name of pfm image file.
imwrite¶
-
dlt.hdr.
imwrite
(filename, img, *args, **kwargs)¶ Writes an image to disk. Supports HDR and LDR image formats.
Parameters: - filename (str) – Name of image file.
- img (Array) – Numpy Array containing the image (OpenCV view hwc-BGR).
- *args – Extra arguments to pass to cv2.imwrite or write_pfm if saving a .pfm image.
- **kwargs – Extra keyword arguments to pass to cv2.imwrite or write_pfm if saving a .pfm image.
load_pfm¶
-
dlt.hdr.
load_pfm
(filename)¶ Loads a pfm image file from disk into a Numpy Array (OpenCV view).
Supports HDR and LDR image formats.
Parameters: filename (str) – Name of pfm image file.
write_pfm¶
-
dlt.hdr.
write_pfm
(filename, img, scale=1)¶ Writes an OpenCV image into pfm format on disk.
Parameters: - filename (str) – Name of the image file. The .pfm extension is not added.
- img (Array) – Numpy Array containing the image (OpenCV view hwc-BGR)
- scale (python:float) – Scale factor for file. Positive for big endian, otherwise little endian. The number tells the units of the samples in the raster (default 1)