Example #1
0
VisualFeature *CreateVisualFeature(int n)
{
  VisualFeature *vf=NULL;

  vf = (VisualFeature *) calloc(1,sizeof(VisualFeature));
  if (vf != NULL) {
    vf->lowH = AllocULongArray(n);
    vf->highH = AllocULongArray(n);
    vf->n = n;
  } else {
    Error(MSG1,"CreateVisualFeature");
  }
  return(vf);
}
Example #2
0
GCHVisualFeature *GCHCreateVisualFeature(int n)
{
  GCHVisualFeature *vf=NULL;

  vf = (GCHVisualFeature *) calloc(1,sizeof(GCHVisualFeature));
  if (vf != NULL) {
    vf->colorH = AllocULongArray(n);
    vf->n = n;
  } else {
    Error(MSG1,"GCHCreateVisualFeature");
  }
  return(vf);
}