public GlintConfiguration(Blob blob) { count = 1; centers = new GTPoint[1]; blobs.BlobDir[0] = blob; centers[0] = new GTPoint(blob.CenterOfGravity.X, blob.CenterOfGravity.Y); }
// Copy constructur internal Blob(Blob source) { // copy everything except image id = source.id; rect = source.rect; cog = source.cog; area = source.area; fullness = source.fullness; colorMean = source.colorMean; colorStdDev = source.colorStdDev; }
public GlintConfiguration(Blob blob0, Blob blob1) { count = 2; centers = new GTPoint[2]; blobs = new Blobs(); blobs.BlobDir[0] = blob0; blobs.BlobDir[1] = blob1; centers[0] = new GTPoint(blob0.CenterOfGravity.X, blob0.CenterOfGravity.Y); centers[1] = new GTPoint(blob1.CenterOfGravity.X, blob1.CenterOfGravity.Y); }
public Blobs(Blob[] blobbies) { foreach (Blob b in blobbies) blobDir.Add(b.ID, b); }