comp_info ( Object : : Request, Channel : Information )

Informations about the components of an imabe object.

The operator comp_info gives informations about the components of an image object. The following requests (Request) are currently possible:

'creator'    Output of the names of the procedures which initially created 
             the image components.

'type'       Output of the type of image component ('byte', 'integer',
             'real' or 'region'). The image region (Typ 'region') is
	       always component 0.
In the tuple Channel the numbers of the components about which informations are required are stated. After carrying out comp_info, Information contains a tuple of strings (one string per entry in Channel) with the required informations.


Attention

The image region (component 0) is the maximum for read_image. The operator init_horus creates the predefined region ('full'). If the region is a result of an image processing operation (e.g. threshold__), the operator comp_info returns the corresponding procedure name as first entry with Request='creator'.


Parameters

Object (input_object)
object -> object
Image object to be examined.

Request (input_control)
string -> string
Required information about object components.
Default value: 'creator'
List of values: 'creator', 'type'

Channel (input_control)
channel(-array) -> integer
Components to be examined
Default value: 0
Suggested values: 0, 1, 2, 3, 4, 5, 6, 7, 8

Information (output_control)
string(-array) -> string
Requested information


Example
init_horus(::512,512,3:) >
read_image(:A:'affe':) >
mean__(A:M:3,3:) >
comp_info(M::'creator',[0,1,2]:I) >
comp_info(M::'type',[0,1,2]:T).

/* Result:
   I = ['init_horus','read_image','mean__']
   T = ['region','byte','byte']                */

Result

If the parameters are correct the operator comp_info returns the value TRUE. Otherwise an exception is raised.


Possible Predecessors

read_image


See also

count_relation



Copyright © 1996-1997 MVTec Software GmbH