X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLymphStation_2RL.txx;h=71298eb5397dfa605888f7b7b7a578757bfeae2c;hb=3d2c3e7d196466f4cb71d056f4d977887d45014b;hp=7e8c834b4aaa6d1d52510f7676881922cf20251f;hpb=ea2fc85081a73d762517dc9663bcc6d5bf15241d;p=clitk.git diff --git a/segmentation/clitkExtractLymphStation_2RL.txx b/segmentation/clitkExtractLymphStation_2RL.txx index 7e8c834..71298eb 100644 --- a/segmentation/clitkExtractLymphStation_2RL.txx +++ b/segmentation/clitkExtractLymphStation_2RL.txx @@ -35,7 +35,7 @@ void HypercubeCorners(std::vector > & out) { std::vector > previous; HypercubeCorners(previous); out.resize(previous.size()*2); - for(uint i=0; i p; if (i & bounds) { // Get image max/min coordinates - const uint dim=ImageType::ImageDimension; + const unsigned int dim=ImageType::ImageDimension; typedef typename ImageType::PointType PointType; typedef typename ImageType::IndexType IndexType; PointType min_c, max_c; IndexType min_i, max_i; min_i = image->GetLargestPossibleRegion().GetIndex(); - for(uint i=0; iGetLargestPossibleRegion().GetSize()[i] + min_i[i]; + for(unsigned int i=0; iGetLargestPossibleRegion().GetSize()[i] + min_i[i]; image->TransformIndexToPhysicalPoint(min_i, min_c); image->TransformIndexToPhysicalPoint(max_i, max_c); // Get corners coordinates HypercubeCorners(bounds); - for(uint i=0; i(Aorta, 2, slices_Aorta); std::vector slices_Trachea; clitk::ExtractSlices(Trachea, 2, slices_Trachea); - uint n= slices_BrachioCephalicArtery.size(); + unsigned int n= slices_BrachioCephalicArtery.size(); // Get the boundaries of one slice std::vector bounds; @@ -382,7 +383,7 @@ ExtractStation_2RL_Ant_Limits2() std::vector p3D; vtkSmartPointer append = vtkSmartPointer::New(); - for(uint i=0; i(slices_CommonCarotidArtery[i], GetBackgroundValue(), true, 1); @@ -425,12 +426,12 @@ ExtractStation_2RL_Ant_Limits2() centroids6.clear(); } - for(uint j=1; j(slices_Trachea[i], GetBackgroundValue(), centroids_trachea); typedef std::pair PointAngleType; std::vector angles; - for(uint j=0; j()); - for(uint j=0; j toadd; - uint index = 0; + unsigned int index = 0; double dmax = 5; while (index points3D; clitk::PointsUtils::Convert2DListTo3DList(points2D, i, m_Working_Support, points3D); - for(uint x=0; x mesh = Build3DMeshFrom2DContour(points3D);