A hyperspectral imaging apparatus comprising a first detector configured to capture a two-dimensional image, a second detector configured to perform single-line imaging and spatially displaced with respect to the first detector, and an objective, which is common to the first detector and the second detector, being located at the same optical distance from the first detector and the second detector, characterized in that the second detector comprises a spectrograph; the imaging apparatus further comprises a common focus device, common to the first detector and the second detector, configured to perform a focusing operation for finding a focusing state and to form an image plane of the common objective on a slit of the spectrograph in response to the focusing state where the two-dimensional image of the first detector is in focus; a directing arrangement configured to direct optical radiation from the common objective to the first detector and the second detector; the directing arrangement comprises at least one of the following for forming a hyperspectral image by scanning the optical radiation over the second detector directed thereto: a detector movement mechanism configured to move both the first detector and the second detector, direct the optical radiation to the second detector and move the second detector for performing line-scanning; and both a reflector (302, 402) and a reflector mover (300, 400) configured to rotate or move linearly the reflector (302, 402) that is configured to reflect the optical radiation to the second detector where the two-dimensional image captured by the first detector is in focus, and the second detector being configured to perform single-line imaging for the hyperspectral image on the basis of the optical radiation directed thereto with said focusing state. a first detector configured to capture a two-dimensional image, a second detector configured to perform single-line imaging and spatially displaced with respect to the first detector, and an objective, which is common to the first detector and the second detector, being located at the same optical distance from the first detector and the second detector, characterized in that the second detector comprises a spectrograph; the imaging apparatus further comprises a common focus device, common to the first detector and the second detector, configured to perform a focusing operation for finding a focusing state and to form an image plane of the common objective on a slit of the spectrograph in response to the focusing state where the two-dimensional image of the first detector is in focus; a directing arrangement configured to direct optical radiation from the common objective to the first detector and the second detector; the directing arrangement comprises at least one of the following for forming a hyperspectral image by scanning the optical radiation over the second detector directed thereto: a detector movement mechanism configured to move both the first detector and the second detector, direct the optical radiation to the second detector and move the second detector for performing line-scanning; and both a reflector (302, 402) and a reflector mover (300, 400) configured to rotate or move linearly the reflector (302, 402) that is configured to reflect the optical radiation to the second detector where the two-dimensional image captured by the first detector is in focus, and the second detector being configured to perform single-line imaging for the hyperspectral image on the basis of the optical radiation directed thereto with said focusing state. a detector movement mechanism configured to move both the first detector and the second detector, direct the optical radiation to the second detector and move the second detector for performing line-scanning; and both a reflector (302, 402) and a reflector mover (300, 400) configured to rotate or move linearly the reflector (302, 402) that is configured to reflect the optical radiation to the second detector where the two-dimensional image captured by the first detector is in focus, and the second detector being configured to perform single-line imaging for the hyperspectral image on the basis of the optical radiation directed thereto with said focusing state.