File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/Filtering/ImageGrid/CropImageBySpecifyingRegion2 Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- file ( DOWNLOAD https://public.kitware.com/pub/itk /NightlyDoxygen/InsightDoxygenDocTag.gz
1
+ file ( DOWNLOAD https://itk.org/files /NightlyDoxygen/InsightDoxygenDocTag.gz
2
2
${ITKDoxygenTAG_TEMP_DIR} /InsightDoxygen.tag.gz SHOW_PROGRESS
3
3
)
4
4
Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ CreateImage(ImageType::Pointer image)
107
107
image->Allocate ();
108
108
image->FillBuffer (itk::NumericTraits<ImageType::PixelType>::ZeroValue ());
109
109
110
+ PixelType rgbPixel;
111
+ rgbPixel[0 ] = 200 ;
112
+ rgbPixel[1 ] = 200 ;
113
+ rgbPixel[2 ] = 200 ;
114
+
110
115
// Make a rectangle, centered at (100,150) with sides 160 & 240
111
116
// This provides a 20 x 30 border around the square for the crop filter to remove
112
117
for (unsigned int r = 20 ; r < 180 ; r++)
@@ -117,7 +122,7 @@ CreateImage(ImageType::Pointer image)
117
122
pixelIndex[0 ] = r;
118
123
pixelIndex[1 ] = c;
119
124
120
- image->SetPixel (pixelIndex, 200 );
125
+ image->SetPixel (pixelIndex, rgbPixel );
121
126
}
122
127
}
123
128
}
You can’t perform that action at this time.
0 commit comments