Research Article
DINOSARC: Color Features Based on Selective Aggregation of Chromatic Image Components for Wireless Capsule Endoscopy
Algorithm 1
Selective aggregation of chromatic image components (SARC).
| | Input: Images Ic (M × N), c = a, b | | | Output: Image ISARC | | (1) | Compute histogram Hc of images Ic, | | (2) | L = length (Hc); | | (3) | //Calculate the first and second derivatives of Hc | | (4) | // first rate | | (5) | | | (6) | | | (7) | | | (8) | | | (9) | //denote the max values of value field | | (10) | | | (11) | For each do | | (12) | If then | | (13) | If then | | (14) | End For | | (15) | ⟵ Normalize ; //Enhance contrast | | (16) | //Non-maxima filtering | | (17) | For each in do | | (18) | temp[] ⟵ n × n neighborhood centered at | | (19) | For i = 0 to n × n do | | (20) | If < then = 0; | | (21) | End For | | (22) | //Temp is matrix with odd number of rows and columns | | (23) | If then temp = 0; ; | | (24) | End For | | (25) | |
|