From: dsarrut Date: Mon, 2 May 2011 09:15:40 +0000 (+0200) Subject: change above/below X-Git-Tag: v1.2.0^2~6 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=93e4afb41418b87bc44dbad2aa10807c9e546895;p=clitk.git change above/below --- diff --git a/segmentation/clitkExtractLymphStation_8.txx b/segmentation/clitkExtractLymphStation_8.txx index bb1ce79..fc39203 100644 --- a/segmentation/clitkExtractLymphStation_8.txx +++ b/segmentation/clitkExtractLymphStation_8.txx @@ -241,7 +241,7 @@ ExtractStation_8_Ant_Sup_Limits() MaskImagePointer Trachea = GetAFDB()->template GetImage("Trachea"); MaskImagePointer m_Working_Trachea = - clitk::CropImageAbove(Trachea, 2, m_CarinaZ, true, // AutoCrop + clitk::CropImageRemoveGreaterThan(Trachea, 2, m_CarinaZ, true, // AutoCrop GetBackgroundValue()); // Seprate into two main bronchi @@ -322,12 +322,12 @@ ExtractStation_8_Ant_Sup_Limits() OriginOfRightMiddleLobeBronchus->Delete(); RightBronchus = - clitk::CropImageBelow(RightBronchus, 2, + clitk::CropImageRemoveLowerThan(RightBronchus, 2, m_OriginOfRightMiddleLobeBronchusZ, true, // AutoCrop GetBackgroundValue()); LeftBronchus = - clitk::CropImageBelow(LeftBronchus, 2, + clitk::CropImageRemoveLowerThan(LeftBronchus, 2, m_OriginOfRightMiddleLobeBronchusZ, true, // AutoCrop GetBackgroundValue()); @@ -431,7 +431,7 @@ ExtractStation_8_Ant_Inf_Limits() // Crop Esophagus : keep only below the OriginOfRightMiddleLobeBronchusZ m_Esophagus = - clitk::CropImageAbove(m_Esophagus, 2, + clitk::CropImageRemoveGreaterThan(m_Esophagus, 2, m_OriginOfRightMiddleLobeBronchusZ, true, // AutoCrop GetBackgroundValue()); @@ -849,7 +849,7 @@ ExtractStation_8_LR_Limits_old2() clitk::ComputeCentroids(eso_slices[i], GetBackgroundValue(), c); if (c.size() >1) { eso_slices[i] = - clitk::CropImageAbove(eso_slices[i], 1, c[1][1], false, GetBackgroundValue()); + clitk::CropImageRemoveGreaterThan(eso_slices[i], 1, c[1][1], false, GetBackgroundValue()); eso_slices[i] = clitk::ResizeImageLike(eso_slices[i], aorta_slices[i], GetBackgroundValue()); // writeImage(eso_slices[i], "eso-slice-"+toString(i)+".mhd"); @@ -1040,7 +1040,7 @@ ExtractStation_8_LR_Limits() // Crop the vertebralbody below this most post line vert_slices[j] = - clitk::CropImageAbove(vert_slices[j], 1, sp_MostAntVertebralBody[1], false, GetBackgroundValue()); + clitk::CropImageRemoveGreaterThan(vert_slices[j], 1, sp_MostAntVertebralBody[1], false, GetBackgroundValue()); vert_slices[j] = clitk::ResizeImageLike(vert_slices[j], aorta_slices[i], GetBackgroundValue()); // writeImage(vert_slices[i], "vert-slice-"+toString(i)+".mhd"); @@ -1161,7 +1161,7 @@ EnlargeEsophagusDilatationRadiusInferiorly(MaskImagePointer & Esophagus) clitk::FindExtremaPointInAGivenDirection(Esophagus, GetBackgroundValue(), 2, true, pt); DD(pt); Esophagus = - clitk::CropImageBelow(Esophagus, 2, + clitk::CropImageRemoveLowerThan(Esophagus, 2, pt[2], false, // AutoCrop GetBackgroundValue());