1. A method of filtering data associated with a hyperspectral image, comprising: receiving detection image data having a plurality of pixels, the detection image data associated with the hyperspectral image; processing the detection image data to determine a background in the plurality of pixels; establishing a plurality of spatial filters for the detection image data, each of the plurality of spatial filters associated with energy being received at different locations on each of the plurality of pixels, the plurality of spatial filters being weighted by the background; and applying each of the plurality of spatial filers to the detection image data, such that each of the plurality of pixels are associated with a selected one of the plurality of spatial filters.