An image decoding method for decoding intra prediction coded blocks in raster-scan order, the method comprising: a first step for performing inverse variable length coding processing; a second step for inverse quantization processing the data that has been processed in the first step; a third step for decoding prediction residuals by inverse frequency conversion processing the data obtained by inverse quantization in the second step; and a fourth step for obtaining a decoded image including decode target pixels by performing a decoding process using the prediction residuals and a decoded second reference pixel which is decoded before the decoding process for the decode target pixels, wherein, processes in the fourth step include: a first process for generating a first reference pixel, and for generating a prediction pixel in an intra prediction mode, wherein the first reference pixel is located at a boundary of a decode target block; wherein for generating the first reference pixel in the first process, at least one generating method is executed among generating methods including a generating method generating a plurality of first reference pixels located in line in a vertical direction by using at least one pixel located at a boundary of a decoded block adjacently located on an upper side of the decode target block and a generating method generating a plurality of first reference pixels located in line in a horizontal direction by using at least one pixel located at a boundary of a decoded block adjacently located on a left side of the decode target block; wherein in the first process for generating a prediction pixel, a calculation process is performed using the first reference pixel and the decoded second reference pixel for generating a prediction pixel located between the first reference pixel and the decoded second reference pixel, the second reference pixel being adjacently located on left side or upper side of the decode target block and located at a different side from the side of the first reference pixel; and wherein a decode target pixel is obtained by using the prediction pixel generated by the first process and the prediction residuals. a first step for performing inverse variable length coding processing; a second step for inverse quantization processing the data that has been processed in the first step; a third step for decoding prediction residuals by inverse frequency conversion processing the data obtained by inverse quantization in the second step; and a fourth step for obtaining a decoded image including decode target pixels by performing a decoding process using the prediction residuals and a decoded second reference pixel which is decoded before the decoding process for the decode target pixels, wherein, processes in the fourth step include: a first process for generating a first reference pixel, and for generating a prediction pixel in an intra prediction mode, wherein the first reference pixel is located at a boundary of a decode target block; wherein for generating the first reference pixel in the first process, at least one generating method is executed among generating methods including a generating method generating a plurality of first reference pixels located in line in a vertical direction by using at least one pixel located at a boundary of a decoded block adjacently located on an upper side of the decode target block and a generating method generating a plurality of first reference pixels located in line in a horizontal direction by using at least one pixel located at a boundary of a decoded block adjacently located on a left side of the decode target block; wherein in the first process for generating a prediction pixel, a calculation process is performed using the first reference pixel and the decoded second reference pixel for generating a prediction pixel located between the first reference pixel and the decoded second reference pixel, the second reference pixel being adjacently located on left side or upper side of the decode target block and located at a different side from the side of the first reference pixel; and wherein a decode target pixel is obtained by using the prediction pixel generated by the first process and the prediction residuals. a first process for generating a first reference pixel, and for generating a prediction pixel in an intra prediction mode, wherein the first reference pixel is located at a boundary of a decode target block; wherein for generating the first reference pixel in the first process, at least one generating method is executed among generating methods including a generating method generating a plurality of first reference pixels located in line in a vertical direction by using at least one pixel located at a boundary of a decoded block adjacently located on an upper side of the decode target block and a generating method generating a plurality of first reference pixels located in line in a horizontal direction by using at least one pixel located at a boundary of a decoded block adjacently located on a left side of the decode target block; wherein in the first process for generating a prediction pixel, a calculation process is performed using the first reference pixel and the decoded second reference pixel for generating a prediction pixel located between the first reference pixel and the decoded second reference pixel, the second reference pixel being adjacently located on left side or upper side of the decode target block and located at a different side from the side of the first reference pixel; and wherein a decode target pixel is obtained by using the prediction pixel generated by the first process and the prediction residuals.