MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / s

Method s

digital_image_processing/index_calculation.py:493–501  ·  view source on GitHub ↗

Saturation https://www.indexdatabase.de/db/i-single.php?id=77 :return: index

(self)

Source from the content-addressed store, hash-verified

491 return (self.red - self.green) / (self.red + self.green)
492
493 def s(self):
494 """
495 Saturation
496 https://www.indexdatabase.de/db/i-single.php?id=77
497 :return: index
498 """
499 max_value = np.max([np.max(self.red), np.max(self.green), np.max(self.blue)])
500 min_value = np.min([np.min(self.red), np.min(self.green), np.min(self.blue)])
501 return (max_value - min_value) / max_value
502
503 def _if(self):
504 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected