Пример #1
0
int main( int argc, char ** argv )
{
  TestGetClosedContourOrdering();

  TestGetOpenContourOrdering();

  TestDrawRectangle();

  TestIsClosedLoop();

  TestBreadthFirstOrderingNonZeroPixels();

  TestBlurAllChannels();

  TestAnisotropicBlurAllChannels();

  TestHistogramOfGradients();

  TestExtractChannel();
  TestExtractChannels();

  TestSumOfComponentMagnitudes();

  TestClosestPoint();

  TestGetAllPatchesContainingPixel();

  TestDownsample();
  TestUpsample();

  TestDeepCopyFloatScalar();
  TestDeepCopyUnsignedCharScalar();
  TestDeepCopyFloatVector();
  TestDeepCopyUnsignedCharVector();

  return 0;
}
Пример #2
0
int main(int, char **)
{
  bool allPass = true;

  allPass &= TestRandomImage();

  allPass &= TestGetClosedContourOrdering();

  allPass &= TestGetOpenContourOrdering();

  allPass &= TestDrawRectangle();

  allPass &= TestIsClosedLoop();

  allPass &= TestClosestValueIndex();

  allPass &= TestBreadthFirstOrderingNonZeroPixels();

  allPass &= TestBlurAllChannelsVector();
  allPass &= TestBlurAllChannelsScalar();
  allPass &= TestBilateralFilterAllChannels();

  allPass &= TestHistogramOfGradients();

  allPass &= TestExtractChannel();
  allPass &= TestExtractChannels();

  allPass &= TestSumOfComponentMagnitudes();

  allPass &= TestGetAllPatchesContainingPixel();

  allPass &= TestDownsample();
  allPass &= TestUpsample();

  allPass &= TestDeepCopyFloatScalar();
  allPass &= TestDeepCopyUnsignedCharScalar();
  allPass &= TestDeepCopyFloatVector();
  allPass &= TestDeepCopyUnsignedCharVector();

  allPass &= TestGetBoundaryPixels();

  allPass &= TestDivideRegion();

  allPass &= TestMinOfIndex();

  allPass &= TestMinOfAllIndices();

  allPass &= TestComputeGradientsInRegion();

  allPass &= TestCreateLuminanceImage();

  allPass &= TestHasBracketOperator();

  if(allPass)
  {
    return EXIT_SUCCESS;
  }
  else
  {
    return EXIT_FAILURE;
  }
}