this function collimates an existing projection image stack . pixels outside the kollimator are set to zero . the collimator is centered by default . width is the still visible part of the projection provided by user input . concode_field_sep int maxThetaIndex concode_elem_sep int maxSIndex concode_field_sep placeholderType placeHolder
void function ( Grid2D arg0 , int arg1 ) { assert ( arg1 < maxSIndex ) ; int loc0 = maxSIndex / 2 ; for ( int loc1 = 0 ; loc1 < maxThetaIndex ; loc1 ++ ) { for ( int loc2 = 0 ; loc2 < maxSIndex ; loc2 ++ ) { if ( loc2 < loc0 - arg1 / 2 || loc2 > loc0 + arg1 / 2 ) arg0 . setAtIndex ( loc2 , loc1 , 0 ) ; } } }