Package gmisclib :: Module read_dicom :: Class img_with_mx
[frames] | no frames]

Class img_with_mx

source code


This is a way of reading in a 2-D image when you don't know the final size. It keeps a larger image around and keeps track of the area that has been set.

Instance Methods
 
__init__(self, i, j)
Create an image that contains pixel (i,j).
source code
 
resize(self, inxt, jnxt) source code
 
set(self, i, j, val)
Set a pixel, expanding the allocated space as needed.
source code
 
get(self)
Get the image, trimming it to show the area that has been set.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, i, j)
(Constructor)

source code 

Create an image that contains pixel (i,j).

Overrides: object.__init__