It is inherently difficult to compose a query dealing with images and their relation to other images. KMeD's MQuery language allows the user to construct visually descriptive queries. The figure below contains two IVEs, one that represents lung tumor objects and one that represents lung objects.
IVEs allow the user to have different templates of an object with which to compose visual queries.
For example, in the schema below, the user can select from different views of a lung image slice to compose their query. And likewise, the user can select from various templates of lung tumor objects. In addition, attributes, relationships, aggregation, and other database constructs are also supported by our query language. To contruct an MQuery query, the user opens a query window and simply drags the icons from a visual schema diagram. By default, the actual position of the lung tumor object IVE is automatically calculated by MQuery and is used to obtain the query results.