コード例 #1
0
ファイル: image_conversion.py プロジェクト: alan0526/Gamera
 def __call__(self):
     if self.data.pixel_type == GREYSCALE:
         return self.image_copy()
     return _image_conversion.to_greyscale(self)
コード例 #2
0
ファイル: image_conversion.py プロジェクト: elaboris/gamera
 def __call__(self):
     if self.data.pixel_type == GREYSCALE:
         return self.image_copy()
     return _image_conversion.to_greyscale(self)
コード例 #3
0
ファイル: image_conversion.py プロジェクト: alan0526/Gamera
 def __call__(self, storage_format=DENSE):
     if self.data.pixel_type == ONEBIT:
         return self.image_copy()
     if self.data.pixel_type != GREYSCALE:
         self = _image_conversion.to_greyscale(self)
     return self.otsu_threshold(storage_format)
コード例 #4
0
ファイル: image_conversion.py プロジェクト: elaboris/gamera
 def __call__(self, storage_format=DENSE):
     if self.data.pixel_type == ONEBIT:
         return self.image_copy()
     if self.data.pixel_type != GREYSCALE:
         self = _image_conversion.to_greyscale(self)
     return self.otsu_threshold(storage_format)