An image processor, comprising: an input unit configured to capture image data which is represented by two kinds of color components including correction object color components and reference color components and which have one kind of said color components alternating per pixel, wherein the reference color components have a higher pixel density than the correction object color components; a color misregistration information acquisition unit configured to acquire or detect information about a positional shift between a position P and a position P' caused by magnification chromatic aberration of said correction object color components; and a similarity direction detection unit configured to perform similarity judgement by determining local similarity directions of an image structure; a positional shift correction unit configured to calculate an interpolated correction object color component at position P' from correction object color components in the input image at positions Q' near position P'; an image structure extraction unit configured to perform the following calculations: - obtain positions Q near P for each position Q' based on the positional shift information; - interpolate the reference color component at each position Q thereby using the fine structures from reference color components extracted by similarity judgement; - calculate a value Z2 at position P by interpolating the reference color component using said interpolated reference color components at positions Q at the same reference spacing as for the interpolation of the correction object color component by the positional shift correction unit; - calculate a value Z1 at position P by interpolating the reference color components near position P in the input image; and - calculate a difference between the interpolation values Z1 and Z2; an image structure compensation unit configured to compensate the image data by adding the difference between interpolation results Z1 and Z2 to said interpolated correction object color component in position P obtained by the positional shift correction unit. an input unit configured to capture image data which is represented by two kinds of color components including correction object color components and reference color components and which have one kind of said color components alternating per pixel, wherein the reference color components have a higher pixel density than the correction object color components; a color misregistration information acquisition unit configured to acquire or detect information about a positional shift between a position P and a position P' caused by magnification chromatic aberration of said correction object color components; and a similarity direction detection unit configured to perform similarity judgement by determining local similarity directions of an image structure; a positional shift correction unit configured to calculate an interpolated correction object color component at position P' from correction object color components in the input image at positions Q' near position P'; an image structure extraction unit configured to perform the following calculations: - obtain positions Q near P for each position Q' based on the positional shift information; - interpolate the reference color component at each position Q thereby using the fine structures from reference color components extracted by similarity judgement; - calculate a value Z2 at position P by interpolating the reference color component using said interpolated reference color components at positions Q at the same reference spacing as for the interpolation of the correction object color component by the positional shift correction unit; - calculate a value Z1 at position P by interpolating the reference color components near position P in the input image; and - calculate a difference between the interpolation values Z1 and Z2; - obtain positions Q near P for each position Q' based on the positional shift information; - interpolate the reference color component at each position Q thereby using the fine structures from reference color components extracted by similarity judgement; - calculate a value Z2 at position P by interpolating the reference color component using said interpolated reference color components at positions Q at the same reference spacing as for the interpolation of the correction object color component by the positional shift correction unit; - calculate a value Z1 at position P by interpolating the reference color components near position P in the input image; and - calculate a difference between the interpolation values Z1 and Z2; an image structure compensation unit configured to compensate the image data by adding the difference between interpolation results Z1 and Z2 to said interpolated correction object color component in position P obtained by the positional shift correction unit.