std::vector<double> coord = bbGetInputCoordinates();
- /*double *vector = static_cast<double*>(m_VectorImage->GetScalarPointer(coord[0],coord[1],coord[2]));
-
vtkDoubleArray* velocity = vtkDoubleArray::New();
- velocity = vtkDoubleArray::SafeDownCast(this->m_VectorImage->GetPointData()->GetArray("velocity"));
-
-
-
+ velocity = vtkDoubleArray::SafeDownCast(m_VectorImage->GetPointData()->GetArray("velocity"));
- std::cout << "coord: "<< coord[0] << ","<< coord[1] << ","<<coord[2] << std::endl;
- std::cout << "vector: "<< velocity[0] << ","<< velocity[1] << ","<<velocityvelocity[2] << std::endl;
+ std::cout<< "# components velocity" << velocity->GetNumberOfComponents()<<std::endl;
double ang1 = 0;
double ang2 = 0;
- ang1 = velocity[0] + velocity[1] + velocity[2];
- ang2 = velocity[0] + velocity[1] - velocity[2];
-*/
+ ang1 = 1;
+ ang2 = 2;
m_VectorImage->Print(std::cout);
-
-
-
-
- //bbSetOutputAngle1(ang1);
- //bbSetOutputAngle2(ang2);
+ bbSetOutputAngle1(ang1);
+ bbSetOutputAngle2(ang2);
}// if image != NULL
-
-
-
-
-
-
std::cout<< "MLER VectorsExtraction Process END" << std::endl;
}