Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENH: increase dilation of ROI to deal with faiure of ROIAuto for really

dark (supressed) skulls
  • Loading branch information...
commit ab947824490dd6c9e66772ab9f7503f9e0b36c7d 1 parent 04d4b72
@reginakim reginakim authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 BRAINSABC/brainseg/AtlasRegistrationMethod.hxx
View
5 BRAINSABC/brainseg/AtlasRegistrationMethod.hxx
@@ -170,13 +170,14 @@ AtlasRegistrationMethod<TOutputPixel, TProbabilityPixel>
// Register each intrasubject image mode to first image
intraSubjectRegistrationHelper->SetFixedVolume(m_IntraSubjectOriginalImageList[0]);
// TODO: Find way to turn on histogram equalization for same mode images
+ const int dilateSize = 15;
intraSubjectRegistrationHelper->SetMovingVolume(m_IntraSubjectOriginalImageList[i]);
{
muLogMacro( << "Generating MovingImage Mask (Intrasubject " << i << ")" << std::endl );
typedef itk::BRAINSROIAutoImageFilter<InternalImageType, itk::Image<unsigned char, 3> > ROIAutoType;
typename ROIAutoType::Pointer ROIFilter = ROIAutoType::New();
ROIFilter->SetInput(m_IntraSubjectOriginalImageList[i]);
- ROIFilter->SetDilateSize(3); // Only use a very small non-tissue
+ ROIFilter->SetDilateSize(dilateSize); // Only use a very small non-tissue
// region outside of head during initial
// runnings
ROIFilter->Update();
@@ -206,7 +207,7 @@ AtlasRegistrationMethod<TOutputPixel, TProbabilityPixel>
typedef itk::BRAINSROIAutoImageFilter<InternalImageType, itk::Image<unsigned char, 3> > ROIAutoType;
typename ROIAutoType::Pointer ROIFilter = ROIAutoType::New();
ROIFilter->SetInput(m_IntraSubjectOriginalImageList[0]);
- ROIFilter->SetDilateSize(3); // Only use a very small non-tissue
+ ROIFilter->SetDilateSize(dilateSize); // Only use a very small non-tissue
// region outside of head during
// initial runnings
ROIFilter->Update();
Please sign in to comment.
Something went wrong with that request. Please try again.