Reimplemented from Impala::Core::Test::TestBase. Definition at line 27 of file TestDumpSmall.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), mSrcName, Impala::Core::Test::TestImage::OpenSrcArray(), Impala::Core::Array::PrintData(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value(). 00028 { 00029 std::cout << "src: " << std::endl; 00030 Array2dVec3UInt8* src = OpenSrcArray(mSrcName); 00031 std::cout << std::endl; 00032 PrintData(src, false); 00033 00034 typedef Array::Element::VecTem<Real64,5> Vec5Real64; 00035 typedef Array::Array2dTem<Real64, 5, Vec5Real64> Array2dVec5Real64; 00036 00037 //Array2dVec3Real64* v3 = 0; 00038 //Set(v3, src); 00039 //PrintData(v3, false); 00040 00041 Vec5Real64 d1(5); 00042 std::cout << "d1 = " << d1 << std::endl; 00043 Array::Vec3Int32 i1(9, 8, 7); 00044 std::cout << "i1 = " << i1 << std::endl; 00045 i1 = src->Value(0, 1); 00046 std::cout << "i1 = " << i1 << std::endl; 00047 std::cout << "src(0,1) " << src->Value(0, 1) << std::endl; 00048 00049 Array2dVec5Real64 v5(src->CW(), src->CH(), 0, 0); 00050 //Set(v5, src); 00051 //std::cout << "after Set(v5, src)" << std::endl; 00052 PrintData(&v5, false); 00053 std::cout << "Starting assignment" << std::endl << std::endl; 00054 //v5.Elem(0, 1) = src->Value(0, 1); 00055 for (int y=0 ; y<src->CH() ; y++) 00056 for (int x=0 ; x<src->CW() ; x++) 00057 v5.Elem(x, y) = src->Value(x, y); 00058 std::cout << std::endl << "Done assignment" << std::endl; 00059 PrintData(&v5, false); 00060 00061 //Array2dScalarReal64* sr = 0; 00062 //Set(sr, v5); 00063 //PrintData(sr, false); 00064 00065 /* 00066 WriteRaw(&v5, "v5.raw", false); 00067 Array2dVec5Real64* v5_2 = 0; 00068 ReadRaw(v5_2, "v5.raw"); 00069 std::cout << "Version 2" << std::endl; 00070 PrintData(v5_2, false); 00071 */ 00072 00073 //delete sr; 00074 delete src; 00075 }
Here is the call graph for this function:
|