1. A method for decoding a coded current block of an image including a plurality of pixels, the method comprising: reconstructing the coded current block; and performing deblocking filtering on the reconstructed block, wherein the deblocking filtering includes: dividing each of a first block and a second block that are separated by a first boundary into at least two segments along a line that is perpendicular to said first boundary; and judging whether or not to apply a deblocking filter to pixels adjacent to the first boundary of the first block and the second block, wherein the judgment is individually performed for a pair of adjacent segments on both sides of the first boundary using sample pixels in the pair of adjacent segments, such that no pixels belonging to other segments are used in the judgment, the division of the first block and the second block into segments is performed such that a segment of one of the first block and the second block includes all pixels of said one of the first block and the second block required for: (i) judging whether or not to apply a deblocking filter; and (ii) selecting a deblocking filter for deblocking pixels adjacent to a second boundary, the second boundary being between a third block and said one of the first block and the second block, the third block is adjacent to said one of the first block and the second block, the third block is different from the first block and the second block, the second boundary is perpendicular to the first boundary, and the deblocking filtering further includes selecting, from a plurality of deblocking filters, a deblocking filter to be applied to pixels of all lines of said pair of adjacent segments, the lines being perpendicular to the first boundary, in a case in which it is judged in the individual judgment that a deblocking filter is to be applied for said pair of segments.