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

Method ctvi

digital_image_processing/index_calculation.py:332–339  ·  view source on GitHub ↗

Corrected Transformed Vegetation Index https://www.indexdatabase.de/db/i-single.php?id=244 :return: index

(self)

Source from the content-addressed store, hash-verified

330 return (self.red - self.blue) / self.red
331
332 def ctvi(self):
333 """
334 Corrected Transformed Vegetation Index
335 https://www.indexdatabase.de/db/i-single.php?id=244
336 :return: index
337 """
338 ndvi = self.ndvi()
339 return ((ndvi + 0.5) / (abs(ndvi + 0.5))) * (abs(ndvi + 0.5) ** (1 / 2))
340
341 def gdvi(self):
342 """

Callers

nothing calls this directly

Calls 1

ndviMethod · 0.95

Tested by

no test coverage detected