A method for displaying a three-dimensional image on a display device, the method comprising: determining a viewing distance from a stereoscopic image filter of the display device to a viewer; calculating an image pixel pitch based on the determined viewing distance without any change of a pattern pitch of the stereoscopic image filter being time-invariant and including a parallax barrier or a lenticular sheet, wherein the image pixel pitch 'Q' is calculated by the equation Q = (D + d) ∗ R / D, wherein 'D' is the viewing distance, 'd' is a distance between a display panel of the display device and the stereoscopic image filter, and 'R' is the pattern pitch of the stereoscopic image filter; generating a view mask, α, for the 3D image based on the image pixel pitch, wherein the 3D image is a multi-view image, and the view mask is calculated by the equation α(i,k)=W(k-V i), wherein 'i' is a number of a sub-pixel which is an element of the image pixel, 'k' is a view number of the multi-view image, and the function 'W(k-V i)' is a triangular function which equals 1 when k-V i =0 and which equals 0 when k-V i = -1 or 1, wherein 'V i ' is a sub-pixel view number including a decimal point of each sub-pixel according to the image pixel pitch 'Q' given by the equation V i =Mod(V i 0 ∗ Q 0 /Q, N), wherein 'V i 0 ' is a sub-pixel view number at a reference viewing distance, 'Q 0 ' is a reference image pixel pitch for the reference viewing distance, and 'N' is a number of views of the multi-view image; determining a color of at least one pixel for displaying a 3D image based on the calculated image pixel pitch and on the view mask such that, at the reference viewing distance, the image pixel pitch 'Q' is the reference image pixel pitch 'Q 0 '; and displaying the 3D image on the display device based on the determined color, wherein, when the determined viewing distance is a viewing distance 'D far ' that is greater than a reference viewing distance 'D opt ', the image pixel pitch 'Q' is an image pixel pitch 'Q far ' that is less than the reference image pixel pitch 'Q 0 ', and when the determined viewing distance is a viewing distance 'D near ' that is less than the reference viewing distance 'D opt ', the image pixel pitch is a image pixel pitch 'Q near ' that is greater than the reference image pixel pitch 'Q 0 '. determining a viewing distance from a stereoscopic image filter of the display device to a viewer; calculating an image pixel pitch based on the determined viewing distance without any change of a pattern pitch of the stereoscopic image filter being time-invariant and including a parallax barrier or a lenticular sheet, wherein the image pixel pitch 'Q' is calculated by the equation Q = (D + d) ∗ R / D, wherein 'D' is the viewing distance, 'd' is a distance between a display panel of the display device and the stereoscopic image filter, and 'R' is the pattern pitch of the stereoscopic image filter; generating a view mask, α, for the 3D image based on the image pixel pitch, wherein the 3D image is a multi-view image, and the view mask is calculated by the equation α(i,k)=W(k-V i), wherein 'i' is a number of a sub-pixel which is an element of the image pixel, 'k' is a view number of the multi-view image, and the function 'W(k-V i)' is a triangular function which equals 1 when k-V i =0 and which equals 0 when k-V i = -1 or 1, wherein 'V i ' is a sub-pixel view number including a decimal point of each sub-pixel according to the image pixel pitch 'Q' given by the equation V i =Mod(V i 0 ∗ Q 0 /Q, N), wherein 'V i 0 ' is a sub-pixel view number at a reference viewing distance, 'Q 0 ' is a reference image pixel pitch for the reference viewing distance, and 'N' is a number of views of the multi-view image; determining a color of at least one pixel for displaying a 3D image based on the calculated image pixel pitch and on the view mask such that, at the reference viewing distance, the image pixel pitch 'Q' is the reference image pixel pitch 'Q 0 '; and displaying the 3D image on the display device based on the determined color, wherein, when the determined viewing distance is a viewing distance 'D far ' that is greater than a reference viewing distance 'D opt ', the image pixel pitch 'Q' is an image pixel pitch 'Q far ' that is less than the reference image pixel pitch 'Q 0 ', and when the determined viewing distance is a viewing distance 'D near ' that is less than the reference viewing distance 'D opt ', the image pixel pitch is a image pixel pitch 'Q near ' that is greater than the reference image pixel pitch 'Q 0 '.