A detector for detecting electromagnetic radiation spanning a range from a first wavelength to a second wavelength, wherein the first wavelength is a shortest wavelength in the range and the second wavelength is a longest wavelength in the range, wherein the electromagnetic radiation is spanning an ultraviolet range and/or a visible range and/or a short-wave infrared range, said detector (200; 300; 400) comprising: an array of funnel elements for propagating electromagnetic radiation from a second plane towards a first plane, wherein each of the funnel elements comprises an entrance end and an exit end, wherein the entrance ends of the array of funnel elements define the second plane, wherein the entrance end has a size larger than half of the second wavelength of electromagnetic radiation in a medium from which the electromagnetic radiation enters the detector for capturing, at the entrance end of the funnel element, electromagnetic radiation being in focus at the second plane and for propagating the electromagnetic radiation being in focus at the second plane within the funnel element to the exit end, and for allowing electromagnetic radiation being in focus in the first plane to pass the funnel element and to propagate to the first plane uninfluenced by the funnel element, and wherein the exit end has a size smaller than half of the first wavelength of electromagnetic radiation in the medium, wherein the size of the entrance end and the exit end respectively is a maximum dimension of the entrance end and the exit end; and an array of photosensitive elements for detecting electromagnetic radiation incident on the array of photosensitive elements, wherein each funnel element is associated with a photosensitive element such that image information corresponding to electromagnetic radiation being in focus at the second plane is detected by the array of photosensitive elements and wherein the array of photosensitive elements define the first plane and is configured to further capture image information corresponding to electromagnetic radiation being in focus at the first plane. an array of funnel elements for propagating electromagnetic radiation from a second plane towards a first plane, wherein each of the funnel elements comprises an entrance end and an exit end, wherein the entrance ends of the array of funnel elements define the second plane, wherein the entrance end has a size larger than half of the second wavelength of electromagnetic radiation in a medium from which the electromagnetic radiation enters the detector for capturing, at the entrance end of the funnel element, electromagnetic radiation being in focus at the second plane and for propagating the electromagnetic radiation being in focus at the second plane within the funnel element to the exit end, and for allowing electromagnetic radiation being in focus in the first plane to pass the funnel element and to propagate to the first plane uninfluenced by the funnel element, and wherein the exit end has a size smaller than half of the first wavelength of electromagnetic radiation in the medium, wherein the size of the entrance end and the exit end respectively is a maximum dimension of the entrance end and the exit end; and an array of photosensitive elements for detecting electromagnetic radiation incident on the array of photosensitive elements, wherein each funnel element is associated with a photosensitive element such that image information corresponding to electromagnetic radiation being in focus at the second plane is detected by the array of photosensitive elements and wherein the array of photosensitive elements define the first plane and is configured to further capture image information corresponding to electromagnetic radiation being in focus at the first plane.