1. A method for decoding a coded image on a block-by-block basis, the method comprising: decoding a reconstructed image from the coded image; and performing deblocking filtering on a reconstructed block included in the reconstructed image, wherein the deblocking filtering includes judging whether or not to apply a deblocking filter to target pixels adjacent to a boundary between a first reconstructed block and a second reconstructed block, each of the first reconstructed block and the second reconstructed block including a plurality of segments which are separated along a line that is perpendicular to the boundary, wherein the deblocking filter is chosen from a plurality of types of deblocking filters, and in said judging, a judgment is performed for a pair of adjacent segments, which includes the target pixels, using sample pixels in only the pair of adjacent segments on both sides of the boundary, and for each respective line of pixels which is perpendicular to the boundary, one type of deblocking filter is chosen, from among the plurality of types of deblocking filters, using sample pixels in the respective line of pixels and without using any sample pixels in other lines of pixels which are perpendicular to the boundary.