/* Last edited on 2011-08-25 00:54:19 by stolfilocal */ package tracking; /* Represents a tracked text object in a particular frame. Essentially a {TrackRegion} with an associated cloud of particles. */ class TrackObject { private TrackRegion R = null; /* Region assigned to this object in the current frame. */ private double weight = 0.0; /* Likelyhood weight of this tracked object in current frame. */ private particle[] cloud = null; /* Particle cloud of this region, or {null} */ TrackObject(TrackRegion R) { this.R = R; this.weight = 0.0; this.cloud = null; } TrackRegion get_region() { return this.R; } TrackRegion set_particles(particle[] Cs) { this.cloud = Cs; } }