本文整理汇总了Python中Image.Image.imagegenerate方法的典型用法代码示例。如果您正苦于以下问题:Python Image.imagegenerate方法的具体用法?Python Image.imagegenerate怎么用?Python Image.imagegenerate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Image.Image
的用法示例。
在下文中一共展示了Image.imagegenerate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Image
# 需要导入模块: from Image import Image [as 别名]
# 或者: from Image.Image import imagegenerate [as 别名]
import math
from Image import Image
import matplotlib.pyplot as plt
from ImageRelated import ImageRelated
from DetectionRelated import DetectionRelated
thresholdnum = 500
imagenum = 1000
image = Image()
imagepatch = image.imagegenerate()
imagerela = ImageRelated()
detectrela = DetectionRelated()
emptyarray = imagerela.empty_array(thresholdnum)
emptymatrix = imagerela.empty_matrix(x=3)
frac_trueposi = emptyarray
frac_falseposi = emptyarray
trueposi = emptyarray
falseposi = emptyarray
trueneg = emptyarray
falseneg = emptyarray
up_threshold = emptyarray
low_threshold = emptyarray
risk = emptyarray
trueposi_0 = 0
trueposi_1 = 0
trueposi_2 = 0
trueposi_3 = 0
g = emptymatrix
mask_x = [[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]]
mask_y = [[-1, -2, -1], [0, 0, 0], [1, 2, 1]]
judgepixel = detectrela.judgepixel(matrix=imagepatch)