Hyperspectral imaging technology shows great potential for detection of camouflaged targets. Hyperspectral imagery provides fully registered high resolution spatial and spectral images that are invaluable in discriminating between camouflaged targets and backgrounds. However, current research on the processing of hyperspectral imagery tends to focus exclusively on spectral dimension, and thus the spatial and spectral information are not treated simultaneously. In order to get the shape of target, we have developed a new method based on mathematical morphology for edge detection in hyperspectal data. On the basis of analysis, spectral angle distance is utilized in extended morphological operations, which combine spectral and spatial information together. Then operator of edge extraction is used to extract the edge of target. Three major contributions are presented for detection of camouflaged targets in the paper. Firstly, in spectral domain, the best wave band to distinguish camouflaged targets and background is obtained by subtracting reflex intensity of targets and background. Secondly, we confirm the effectiveness of spectral angle mapping in detecting camouflaged targets, which lays a foundation for the use of spectral angle distance on the following study. Finally, as the prior knowledge about extended morphological operations and edge extraction known already, we successful extract the edge of the camouflaged target which is collected by a hyperspectral imager based on AOTF in the VIS-SWIR region.