Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class ArrayT>
void Impala::Core::Array::PrintDataCorners ( ArrayT *  array,
int  cornerWidth,
int  cornerHeight 
) [inline]

Definition at line 52 of file PrintData.h.

References ArrayPrintElem().

Referenced by Impala::Application::Precompute::ChopMatrix(), Impala::Application::Im::DoDumpCorners(), and Impala::Core::Training::FikSvm::Dump().

00053 {
00054     typedef typename ArrayT::StorType StorT;
00055 
00056     std::cout << "Array sizes: cw = " << array->CW() << ", ch = " 
00057               << array->CH() << ", bw = " << array->BW() << ", bh = " 
00058               << array->BH() << std::endl;
00059     if (cornerWidth > array->CW())
00060     {
00061         std::cout << "cornerWidth > width" << std::endl;
00062         return;
00063     }
00064     if (cornerHeight > array->CH())
00065     {
00066         std::cout << "cornerHeight > height" << std::endl;
00067         return;
00068     }
00069     for (int y=0 ; y<array->CH() ; y++)
00070     {
00071         if ((y < cornerHeight) || (y >= (array->CH()-cornerHeight)))
00072         {
00073             std::cout << "  Y = " << y << " :- ";
00074             for (int x=0 ; x<array->CW() ; x++)
00075             {
00076                 if ((x < cornerWidth) || (x >= (array->CW()-cornerWidth)))
00077                 {
00078                     StorT* p = array->CPB(x, y);
00079                     ArrayPrintElem(std::cout, array, p);
00080                     std::cout << ", ";
00081                 }
00082                 else
00083                 {
00084                     if (x == cornerWidth)
00085                         std::cout << "..., ";
00086                 }
00087             }
00088             std::cout << std::endl;
00089         }
00090         else
00091         {
00092             if (y == cornerHeight)
00093                 std::cout << "................." << std::endl;
00094         }
00095     }
00096 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:17:07 2011 for ImpalaSrc by  doxygen 1.5.1