本文整理汇总了Python中omero_model_ImageI.ImageI.sizeOfPixels方法的典型用法代码示例。如果您正苦于以下问题:Python ImageI.sizeOfPixels方法的具体用法?Python ImageI.sizeOfPixels怎么用?Python ImageI.sizeOfPixels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类omero_model_ImageI.ImageI
的用法示例。
在下文中一共展示了ImageI.sizeOfPixels方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testUnloadSet
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfPixels [as 别名]
def testUnloadSet(self):
img = ImageI()
assert img.sizeOfPixels() >= 0
img.addPixels(PixelsI())
assert 1 == img.sizeOfPixels()
img.unloadPixels()
assert img.sizeOfPixels() < 0
示例2: testUnloadSet
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfPixels [as 别名]
def testUnloadSet(self):
img = ImageI()
self.assert_( img.sizeOfPixels() >= 0 )
img.addPixels( PixelsI() )
self.assert_( 1==img.sizeOfPixels() )
img.unloadPixels()
self.assert_( img.sizeOfPixels() < 0 )
示例3: testClearSet
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfPixels [as 别名]
def testClearSet(self):
img = ImageI()
assert img.sizeOfPixels() >= 0
img.addPixels(PixelsI())
assert 1 == img.sizeOfPixels()
img.clearPixels()
assert img.sizeOfPixels() >= 0
assert 0 == img.sizeOfPixels()
示例4: testClearSet
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfPixels [as 别名]
def testClearSet(self):
img = ImageI()
self.assert_( img.sizeOfPixels() >= 0 )
img.addPixels( PixelsI() )
self.assert_( 1==img.sizeOfPixels() )
img.clearPixels()
self.assert_( img.sizeOfPixels() >= 0 )
self.assert_( 0==img.sizeOfPixels() )
示例5: testRemoveFromSet
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfPixels [as 别名]
def testRemoveFromSet(self):
pix = PixelsI()
img = ImageI()
assert img.sizeOfPixels() >= 0
img.addPixels(pix)
assert 1 == img.sizeOfPixels()
img.removePixels(pix)
assert 0 == img.sizeOfPixels()
示例6: testRemoveFromSet
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfPixels [as 别名]
def testRemoveFromSet(self):
pix = PixelsI()
img = ImageI()
self.assert_( img.sizeOfPixels() >= 0 )
img.addPixels( pix )
self.assert_( 1==img.sizeOfPixels() )
img.removePixels( pix )
self.assert_( 0==img.sizeOfPixels() )
示例7: testSimpleCtor
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfPixels [as 别名]
def testSimpleCtor(self):
img = ImageI()
assert img.isLoaded()
assert img.sizeOfPixels() >= 0