Skip to Main Content
It is desired to enhance the outline of agricultural contraband in X-ray images of passenger luggage. Agricultural contraband consists of fruit, meats, animals, and plants. We suggest most contraband can be distinguished from other material by an elliptic, rather than rectangular, cross section. An algorithm is proposed to recognize such cross section using the erosion of the absolute gradient of the image. Only local convolution calculations are required. This algorithm is tested on a number of computed images as well as on X-ray images of model objects, isolated contraband, and contraband contained and obscured in baggage. The effect of image noise, object size, orientation, and obscuration is tested. It is shown that the proposed algorithm successfully enhances the outlines of desired items as small as 1-2 cm (7-11 pixels) to the exclusion of remaining material under the conditions expected in actual use.