[iasplot] [Up] [iagshow] Visualization

iashow
Image display.

Synopsis

g = iashow( f )

Implemented in Python.

Input

f Image. Gray-scale (uint8 or uint16) or binary image (logical).

Image.

Output

g Image. Gray-scale (uint8 or uint16) or binary image (logical).

Description

Display an image.

Examples

Color image
>>> f = iaread('boat.ppm')

              
>>> iashow(f)
(3, 257, 256) Min= 0 Max= 218 Mean=94.533 Std=57.35
f
Binary image
>>> f = iaread('club.pgm')

              
>>> iashow(f)
(178, 158) Min= 0 Max= 255 Mean=68.220 Std=112.88
f
Gray scale image
>>> import Numeric

              
>>> f = Numeric.resize(range(256), (256,256))

              
>>> iashow(f)
(256, 256) Min= 0 Max= 255 Mean=127.500 Std=73.90
f
Gray scale image with negative values
>>> import Numeric

              
>>> f = Numeric.resize(range(-100,100), (100,200))

              
>>> iashow(f)
(100, 200) Min= -100 Max= 99 Mean=-0.500 Std=57.74
f
Image Combining
>>> f = iaread('lenina.pgm')

              
>>> aux,k = iasobel(f)

              
>>> g = aux > 100

              
>>> iashow(f)
(256, 256) Min= 36 Max= 255 Mean=88.958 Std=46.38
>>> iashow(g)
(256, 256) Min= 0 Max= 1 Mean=0.051 Std=0.22
>>> iashow((f,g))
unsupported operand types for +: 'int' and 'instance'
f g
Color set for image combining
>>> f = iaread('lenina.pgm')

              
>>> iashow(f)
(256, 256) Min= 36 Max= 255 Mean=88.958 Std=46.38
>>> iashow((f,f>100,f>130,f>150,f>180,f>220,f==255))
unsupported operand types for +: 'int' and 'instance'
f

Source Code

def iashow(f):
    x_ = iagshow(f)
    g = None
    return g
    

See also

iagshow Matrix of the image display.
[iasplot] [Up] [iagshow] http://www.python.org