Lines Matching full:energy
133 // The energy has the range of [0, kEnergyLevels]
137 // Store all the energy in the dst_pixels
181 // significant for greater energy. For the smaller part, the mask does the
184 // curve based on the energy 'e', for the smaller part, e^2 is used. For the
185 // greater part, e^1.5 is used. That is, for pixel with energy 'e', the mask
204 if (!dp->rgba32) { // the energy is 0, no changes will be made.
207 uint32_t energy = dp->rgba32;
209 int mask_value = energy - energy_middle;
220 // The final picture is masked by the original energy.
221 // Assumption: Lower energy can result in low-confidence information and
222 // higher energy indicates good confidence.
226 kCDFEntries * accumulated_histogram[energy] / total_pixels];
227 dst_energy = (energy * mask_value + dst_energy * (mask_normalization - mask_value)) /
231 uint32_t max_energy = energy * 255 / MAX3(sp->rgba8[0], sp->rgba8[1], sp->rgba8[2]);
236 dst_energy = (dst_energy << kShiftBits) / energy;