We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a02257f commit e593469Copy full SHA for e593469
docs/usage.rst
@@ -378,7 +378,7 @@ labelled bounding box region drawn over a CT image.
378
image_dataset = dcmread('/path/to/image.dcm')
379
380
# Create an image for display by windowing the original image and drawing a
381
- # bounding box over it using OpenCV
+ # bounding box over it using Pillow's ImageDraw module
382
slope = getattr(image_dataset, 'RescaleSlope', 1)
383
intercept = getattr(image_dataset, 'RescaleIntercept', 0)
384
original_image = image_dataset.pixel_array * slope + intercept
0 commit comments