1. A method of determining a blocking artefact measure relating to blocking artefacts in a digital image comprising a plurality of pixels having a value, the method comprising:
for each of a plurality of pixels
determining a vertical gradient measure in dependence upon the values of said pixel and horizontally and vertically neighbouring pixels, in which the vertical gradient measure is equal to the greater of (a) the difference between an average of the values of said pixel and three pixels to a first side of said pixel and an average of the values of four pixels positioned vertically to said pixel, and (b) the difference between an average of the values of said pixel and three pixels to a second side of said pixel; and an average of the values of four pixels positioned vertically to said pixel;
comparing said vertical gradient measure with a vertical gradient threshold and defining said pixel as a potential horizontal boundary in response to the vertical gradient measure exceeding the vertical gradient threshold;
determining a horizontal gradient measure in dependence upon the values of said pixel and horizontally and vertically pixels;
comparing said horizontal gradient measure with a horizontal gradient threshold and defining said pixel as a potential vertical boundary in response to the horizontal gradient measure exceeding the horizontal gradient threshold; and
determining said blocking artefact measure in dependence upon the vertical gradient measure of pixels defined as the potential horizontal boundary and upon the horizontal gradient measure of pixels defined as the potential vertical boundary.
2. A method according to claim 1, in which the vertical gradient threshold is set in dependence upon the lower of the average of the values of said pixel and of horizontally pixels and the average of vertically pixels.
3. A method according to claim 1 in which prior to determining said blocking artefact measure the method further comprises:
dividing the pixels into vertical sets comprising immediately neighbouring vertical pixels; and for each set
identifying a peak pixel having a peak value of the vertical gradient measures of said set;
determining an average gradient value for said set;
defining all the pixels in the set as not being the potential horizontal boundary
excepting the peak pixel from being defined as not being the potential horizontal boundary in the event that the peak gradient value is greater than a predetermined proportion of said average; and
including the peak pixel in being defined as not being the potential horizontal boundary in the event that the peak gradient value is not greater than a predetermined proportion of said average.
4. A method according to claim 3, in which prior to determining said blocking artefact measure the method further comprises:
identifying a plurality of horizontal pixels being defined as the potential horizontal boundary and being bordered by horizontal pixels not defined as the potential horizontal boundary; and
in the event that said plurality is fewer than a predetermined number of pixels, defining all said plurality of pixels as not being the potential horizontal boundary.
5. A method according to claim 1, in which said horizontal gradient measure is determined in dependence upon the difference between an average of the values of said pixel and of vertically neighbouring pixels relative to said pixel and an average of horizontally neighbouring pixels relative to said pixel.
6. A method according to claim 5, in which the horizontal gradient measure is equal to the greater of
the difference between an average of the values of said pixel and three higher pixels and an average of the values of four horizontally neighbouring pixels; and
the difference between an average of the values of said pixel and three lower pixels and an average of the values of four horizontally neighbouring pixels.
7. A method according to claim 6, in which the horizontal gradient threshold is set in dependence upon the lower of the average of the values of said pixel and of vertically neighbouring pixels and the average of horizontally neighbouring pixels.
8. A method according to claim 5 in which prior to determining said blocking artefact measure the method further comprises:
dividing the pixels into horizontal sets comprising neighbouring horizontal pixels; and for each set
identifying a peak pixel having a peak value of the horizontal gradient measures of said set;
determining an average value for said set;
defining all the pixels in the set as not being the potential vertical boundary
excepting the peak pixel from being defined as not being the potential horizontal in the event that the peak value is greater than a predetermined proportion of said average and
including the peak pixel in being defined as not being the potential horizontal boundary in the event that the peak value is not greater than a predetermined proportion of said average.
9. A method according to claim 8, in which prior to determining said blocking artefact measure the method further comprises:
identifying a plurality of immediately neighbouring vertical pixels being defined as the potential vertical boundary and being bordered by vertical pixels not defined as the potential vertical boundary; and
in the event that said plurality is fewer than a predetermined number of pixels, defining all said plurality of pixels as not being the potential vertical boundary.
10. A method according to claim 1, in which the blocking artefact measure is determined in dependence upon a sum of the maximum of the vertical gradient measure of pixels defined as the potential horizontal boundary and the horizontal gradient measure of pixels defined as the potential vertical boundary.
11. A method according to claim 1, in which the blocking artefact measure is determined in dependence upon the total number of pixels defined as the potential horizontal boundary and pixels defined as the potential vertical boundary.
12. A method according to claim 1, in which the pixel value is a luminance value.
13. The method of claim 1, further comprising generating a quality measure in dependence upon a blocking artefact measure.
14. The method of claim 1, further comprising generating a quality measure in dependence upon a plurality of blocking artefact measures relating to a plurality of image frames in the video signal.
15. A method according to claim 13 further comprising the step of storing the quality measure for visualization and analysis.
16. A non-transitory computer readable medium carrying a computer program for implementing the method according to claim 1.
17. An apparatus for determining a measure of blocking artefacts in a digital image comprising a plurality of pixels having a value, the apparatus comprising:
a processor for generating a quality measure;
a store for storing said quality measure;
the processor capable of executing instructions to perform steps offor each of a plurality of pixels
determining a vertical gradient measure in dependence upon the values of said pixel and horizontally and vertically neighbouring pixels, in which the vertical gradient measure is equal to the greater of (a) the difference between an average of the values of said pixel and three pixels to a first side of said pixel and an average of the values of four pixels positioned vertically to said pixel, and (b) the difference between an average of the values of said pixel and three pixels to a second side of said pixel and an average of the values of four pixels positioned vertically to said pixel;
comparing said vertical gradient measure with a vertical gradient threshold and defining said pixel as a potential horizontal boundary in response to the vertical gradient measure exceeding the vertical gradient threshold;
determining a horizontal gradient measure in dependence upon the values of said pixel and horizontally and vertically pixels;
comparing said horizontal gradient measure with a horizontal gradient threshold and defining said pixel as a potential vertical boundary in response to the horizontal gradient measure exceeding the horizontal gradient threshold; and
determining said blocking artefact measure in dependence upon the vertical gradient measure of pixels defined as the potential horizontal boundary and upon the horizontal gradient measure of pixels defined as the potential vertical boundary.
18. An apparatus for determining a measure of blocking artefacts in a video signal representing a plurality of pixels having a value, the apparatus comprising:
a processor for generating a quality measure;
a store for storing said quality measure;
the processor capable of executing instructions to perform steps offor each of a plurality of pixels
determining a vertical gradient measure in dependence upon the values of said pixel and horizontally and vertically neighbouring pixels, in which the vertical gradient measure is equal to the greater of (a) the difference between an average of the values of said pixel and three pixels to a first side of said pixel and an average of the values of four pixels positioned vertically to said pixel, and (b) the difference between an average of the values of said pixel and three pixels to a second side of said pixel and an average of the values of four pixels positioned vertically to said pixel;
comparing said vertical gradient measure with a vertical gradient threshold and defining said pixel as a potential horizontal boundary in response to the vertical gradient measure exceeding the vertical gradient threshold;
determining a horizontal gradient measure in dependence upon the values of said pixel and horizontally and vertically pixels;
comparing said horizontal gradient measure with a horizontal gradient threshold and defining said pixel as a potential vertical boundary in response to the horizontal gradient measure exceeding the horizontal gradient threshold; and
determining said blocking artefact measure in dependence upon the vertical gradient measure of pixels defined as the potential horizontal boundary and upon the horizontal gradient measure of pixels defined as the potential vertical boundary.
19. An apparatus according to claim 17, further comprising means for analysis and visualization of said quality measure.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A living tissue ligation device comprising:
a clip having a plurality of arms which are closable to grip living tissue;
a clamping member having a through hole defined by an inner peripheral surface into which the clip is inserted to close the arms of the clip by urging the arms with the inner peripheral surface;
a coupling member which is to be inserted into the through hole of the clamping member and engages with the clip to allow the clip to be inserted into the through hole; and
an engaging section which is provided on the coupling member, and which engages with the clamping member for limiting a movement of the coupling member relative to the clamping member;
wherein the engaging section includes at least one projection provided on an outer peripheral surface of the coupling member, a tip end of said at least one projection being engagable with the inner peripheral surface of the clamping member.
2. The living tissue ligation device according to claim 1 wherein said at least one projection is engagable with a rear part of the inner peripheral surface of the clamping member.
3. The living tissue ligation device according to claim 1 wherein the engaging section is elastically in contact with the inner peripheral surface of the clamping member so that the coupling member is engaged with the clamping member by a frictional force between the engaging section and the inner peripheral surface.
4. The living tissue ligation device according to claim 1 wherein the coupling member includes a large-diameter portion of a noncircular shape, an outer peripheral surface of the large-diameter portion closely contacting with the inner peripheral surface of the clamping member, and
the engaging section is formed on a part of the outer peripheral surface of the large-diameter portion.
5. The living tissue ligation device according to claim 1 wherein the clamping member includes a peripheral wall having the inner peripheral surface, and the peripheral wall is deformable according to a shape of an outer peripheral surface of the coupling member by pressing the outer peripheral surface of the coupling member onto the inner peripheral surface of the clamping member.
6. A living tissue ligation device comprising:
a clip having a plurality of arms which is closable to grip living tissue;
a clamping member having a through hole defined by an inner peripheral surface into which the clip is inserted to close the arms of the clip by urging the arms with the inner peripheral surface;
a coupling member which is to be inserted into the through hole of the clamping member and engages with the clip to allow the clip to be inserted into the through hole; and
an engaging section including at least one projection formed on an outer peripheral surface of the coupling member, and at least one key groove formed in the inner peripheral surface of the clamping member, said at least one projection being engaged in the key groove of the clamping member, for preventing the coupling member from moving against the clamping member in circumferential and axial directions of the clamping member.
7. The living tissue ligation device according to claim 6 wherein said at least one projection includes a plurality projections separated from each other in a peripheral direction of the coupling member, and said at least one key groove includes a plurality of key grooves separated from each other in the circumferential direction of the clamping member so that each of the projections is engaged with the corresponding key groove.