defining a partial image in the specified area, the partial image being composed of a target pixel and peripheral pixels on {HEAD ~ a line} in {TAIL ~ a specified direction} in which the target pixel exists 
in
defining a partial image in the specified area , the partial image being composed of a target pixel and peripheral pixels on { HEAD ~ a line } in { TAIL ~ a specified direction } in which the target pixel exists
OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH HEAD HEAD HEAD HEAD HEAD HEAD REL TAIL TAIL TAIL TAIL TAIL TAIL TAIL OTH OTH OTH OTH OTH OTH