Toolbox ia870 | List of Figures | Fig. 1.1 | Fig. 1.3

Figure 1.2 - Two binary images

Description

A binary image is composed of two types of pixels: foreground (True) and background (False). Figure 1.2 shows two typical binary images displayed in black and white.

Demo Script

1 import numpy as np
2 import ia870 as MT
3 
4 F = adreadgray('MVBook/n2538_bin.png') > 0
5 G = adreadgray('MVBook/leaf_bin.png') > 0
6 
7 adshow(MT.ianeg(F), '(a)')
8 adshow(MT.ianeg(G), '(b)')

(a)

(b)