added some necessary error checking so that value access of filtering doesn't go outside array bounds
added some necessary error checking so that value access of filtering doesn't go outside array bounds


git-svn-id: 9e9401559e51101c165cdce4d49b411eb20436ed@2464 3d70eeeb-363e-0410-a505-8a46323a89f2

BRAINSia/teem,Slicer/teem,BRAINSia/teem,BRAINSia/teem,Slicer/teem,Slicer/teem,BRAINSia/teem,Slicer/teem,BRAINSia/teem,Slicer/teem