An apparatus for converting two-dimensional input image data into three-dimensional image data and correcting errors in the three-dimensional image data, the apparatus comprising: a two-dimensional image reception unit adapted to receive the two-dimensional input image data; a depth map reception unit adapted to receive depth map information corresponding to the two-dimensional input image data; a spatial histogram generation unit adapted to generate spatial histogram information by histogramming the depth map information in directions of a horizontal axis, X, and a vertical axis, Y, for each of a plurality of objects in a frame, classified according to the depth map information, in each frame of the two-dimensional input image data; a peak frequency generation unit adapted to divide each frame of the two-dimensional input image data into a plurality of areas by scanning the frame in units of predetermined macroblocks and to calculate for each area a peak frequency using a pixel value of each of the divided areas, wherein the peak frequency generation unit is adapted to divide frequency components of each frame into high-frequency components and low-frequency components using Fast Fourier Transform, FFT, and to determine a ratio of coefficients of the high-frequency components as the peak frequency; an error detection unit adapted to detect an error in the depth map information corresponding to an area of the two-dimensional input image data based on the spatial histogram information of the object to which the area corresponds and the peak frequency of the area, wherein if the spatial histogram information of the object to which the area corresponds exceeds a first threshold, the error detection unit is adapted to classify this area as an error-prone area, wherein the error detection unit is adapted to select each error-prone area and, if the peak frequency of the selected error-prone area exceeds a second threshold, the error detection unit is adapted to determine that the selected error-prone area is an error-containing area corresponding to an error in the depth map information; a depth map error correction unit adapted to correct the error in the depth map information corresponding to an error-containing area, if it is determined that there is an error in the area determined as error-containing area; and a rendering processing unit adapted to produce a left-eye image and a right-eye image to form the three-dimensional image data using the two-dimensional input image data and the corrected depth map information. a two-dimensional image reception unit adapted to receive the two-dimensional input image data; a depth map reception unit adapted to receive depth map information corresponding to the two-dimensional input image data; a spatial histogram generation unit adapted to generate spatial histogram information by histogramming the depth map information in directions of a horizontal axis, X, and a vertical axis, Y, for each of a plurality of objects in a frame, classified according to the depth map information, in each frame of the two-dimensional input image data; a peak frequency generation unit adapted to divide each frame of the two-dimensional input image data into a plurality of areas by scanning the frame in units of predetermined macroblocks and to calculate for each area a peak frequency using a pixel value of each of the divided areas, wherein the peak frequency generation unit is adapted to divide frequency components of each frame into high-frequency components and low-frequency components using Fast Fourier Transform, FFT, and to determine a ratio of coefficients of the high-frequency components as the peak frequency; an error detection unit adapted to detect an error in the depth map information corresponding to an area of the two-dimensional input image data based on the spatial histogram information of the object to which the area corresponds and the peak frequency of the area, wherein if the spatial histogram information of the object to which the area corresponds exceeds a first threshold, the error detection unit is adapted to classify this area as an error-prone area, wherein the error detection unit is adapted to select each error-prone area and, if the peak frequency of the selected error-prone area exceeds a second threshold, the error detection unit is adapted to determine that the selected error-prone area is an error-containing area corresponding to an error in the depth map information; a depth map error correction unit adapted to correct the error in the depth map information corresponding to an error-containing area, if it is determined that there is an error in the area determined as error-containing area; and a rendering processing unit adapted to produce a left-eye image and a right-eye image to form the three-dimensional image data using the two-dimensional input image data and the corrected depth map information.