CPC A61B 1/041 (2013.01) [A61B 1/000094 (2022.02); A61B 1/273 (2013.01)] | 13 Claims |
1. A method of identifying a stained area in endoscopic images, comprising:
providing a capsule endoscope system comprising a capsule endoscope and an external device,
obtaining a basic image taken by a photographing device within the capsule endoscope, wherein the capsule endoscope is a swallowable device and used in gastrointestinal examinations;
removing abnormal pixels from the basic image and recording the basic image as a processed image after the abnormal pixels are removed;
obtaining a hue, saturation, and value of each pixel in the processed image of HSV format;
setting a first condition for each pixel where the hue is in a D1 range, the saturation is in a D2 range, and the value is in a D3 range;
obtaining a b component of each pixel in the processed image of Lab format;
setting a second condition that the b component of each pixel is in a D4 range;
collecting and processing pixels that meet the first condition and/or the second condition to form a set C;
calculating an initial range area S1 of the set C,
wherein the D4 range is [¼Bmin, 0.16], and the b component is normalized, and wherein Bmin is a minimum value of the b component of the basic image in a Lab color model.
|