Function iabshow

namespace:morph
page:iabshow

Synopse

Generate a graphical representation of overlaid binary images.

  • y = iabshow(f1, f2=NULL, f3=NULL, factor=17)
    • y: Image
    • f1: Image
    • f2: Image
    • f3: Image
    • factor: Double Expansion factor for the output image. Use odd values above 9.

Description

Generate an expanded binary image as a graphical representation of up to three binary input images. The 1-pixels of the first image are represented by square contours, the pixels of the optional second image are represented by circles and for the third image they are represented by shaded squares. This function is useful to create graphical illustration of small images.

Examples

Example 1

01. from ia870 import iabshow
02. from ia870 import iatext
03. 
04. 
05. f1=iatext('b')
06. g1=iabshow(f1)
07. adshow(g1)
08. 
09. f2=iatext('w')
10. g2=iabshow(f1,f2)
11. adshow(g2)
12. f3=iatext('x')
13. g3=iabshow(f1,f2,f3)
14. adshow(g3);

Example 2

1. from ia870 import iabshow
2. 
3. B=array([1,1,1,1,1],bool)
4. A=array([1,1,1],bool)
5. adshow(iabshow(B,B),title='B')
6. adshow(iabshow(A,A),title='A')

B

A