def NDIimage(self, arg_debug= False):
G= self.imgRGB_G.astype('float')
R= self.imgRGB_R.astype('float')
NDIimage= 128*((G-R)/(G+R)+1)
NDIimage= cv2.normalize(NDIimage, NDIimage, 0, 255, cv2.NORM_MINMAX)
if arg_debug:
cv2.imwrite('Debug/debug_NDIimage.jpg', NDIimage)
return NDIimage
class_PlantIdentifier.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录