A method performed in a digital camera of distinguishing between foreground and background regions of a digital image of a scene, the method comprising capturing (steps 202 and 204) first and second images (A, B) of nominally the same scene in rapid succession using the same image capture device and storing the captured images, the first image being taken with the foreground more in focus than the background and the second image being taken with the background more in focus than the foreground, and comparing (steps 206 to 214) the stored images to determine a foreground region of the first image, characterised in that: the captured images are stored in DCT-coded format, the coded images are compared by comparing their high frequency components, and the high frequency components are compared by: (a) calculating (step 208) the sum of selected higher order coefficients for each of a plurality of DCT blocks of the first image, said sum referred to herein as the HF index of the block, (b) calculating (step 210) the HF index for each of a plurality of DCT blocks of the second image, (c) comparing (step 212) the HF index of each DCT block of the first image with the HF index of the DCT block of the equivalent region of the second image, (d) if the HF index of a given DCT block of the first image is greater than the HF index of the DCT block of the equivalent region of the second image, assigning the given block of the first image as corresponding to a foreground region of the image, and (e) if the HF index of a given DCT block of the first image is less than the HF index of the DCT block of the equivalent region of the second image, assigning the given block of the first image as corresponding to a background region of the image, wherein the first image is a relatively high resolution image and the second image is a relatively low resolution pre- or post-view image, whereby a DCT block in the second image corresponds to a larger area of the scene than a DCT block in the first image, and wherein each HF index of the first image is subtracted from that HF index of the second image whose DCT block corresponds to an area of the scene substantially containing the area of the scene corresponding to the DCT block of the first image, whereby the HF indices for several adjacent DCT blocks in the first image are subtracted from the same HF index of the second image corresponding to a single DCT block in the second image. the captured images are stored in DCT-coded format, the coded images are compared by comparing their high frequency components, and the high frequency components are compared by: (a) calculating (step 208) the sum of selected higher order coefficients for each of a plurality of DCT blocks of the first image, said sum referred to herein as the HF index of the block, (b) calculating (step 210) the HF index for each of a plurality of DCT blocks of the second image, (c) comparing (step 212) the HF index of each DCT block of the first image with the HF index of the DCT block of the equivalent region of the second image, (d) if the HF index of a given DCT block of the first image is greater than the HF index of the DCT block of the equivalent region of the second image, assigning the given block of the first image as corresponding to a foreground region of the image, and (e) if the HF index of a given DCT block of the first image is less than the HF index of the DCT block of the equivalent region of the second image, assigning the given block of the first image as corresponding to a background region of the image, (a) calculating (step 208) the sum of selected higher order coefficients for each of a plurality of DCT blocks of the first image, said sum referred to herein as the HF index of the block, (b) calculating (step 210) the HF index for each of a plurality of DCT blocks of the second image, (c) comparing (step 212) the HF index of each DCT block of the first image with the HF index of the DCT block of the equivalent region of the second image, (d) if the HF index of a given DCT block of the first image is greater than the HF index of the DCT block of the equivalent region of the second image, assigning the given block of the first image as corresponding to a foreground region of the image, and (e) if the HF index of a given DCT block of the first image is less than the HF index of the DCT block of the equivalent region of the second image, assigning the given block of the first image as corresponding to a background region of the image, wherein the first image is a relatively high resolution image and the second image is a relatively low resolution pre- or post-view image, whereby a DCT block in the second image corresponds to a larger area of the scene than a DCT block in the first image, and wherein each HF index of the first image is subtracted from that HF index of the second image whose DCT block corresponds to an area of the scene substantially containing the area of the scene corresponding to the DCT block of the first image, whereby the HF indices for several adjacent DCT blocks in the first image are subtracted from the same HF index of the second image corresponding to a single DCT block in the second image.