Link Search Menu Expand Document

CLASSIFIER : GRQuad

uid: class-GRQuad-CVEViewer-MetaModel@g-scop.grenoble-inp.fr

About

Abstract

A GRQuad is a graphic node visualizing a rectangle with potentially a texture. The Quad is form (-1,-1) to (1,1). We must transform it the transformation matrix to get the size and position, we expect.

GRQuad

To create a GRQuad it exists two functions:

quad=cve.viewer.GRQuad(image)

where :

  • image is a png or jpg file. It may be None and a cvetexture may be associated through methods

quad=cve.viewer.GRQuadFromCamera(camera)

where :

  • Camera port number (from 0 to n-1) when n is the number of camera connected to the computer

In the last case the run method start/stop camera capture.

Class Diagram

Class diagram of class of GRQuad.

Inherits

attribute type cardinality
texture TEXTURE [1,1]

Methods

  • run(self,..) :