Пример #1
0
def test_2x2_img_easy():
    w = SegGeometryEpix10kaV1(use_wide_pix_center=False)
    X, Y = w.get_seg_xy_maps_pix_with_offset()
    iX, iY = (X + 0.25).astype(int), (Y + 0.25).astype(int)
    img = gg.getImageFromIndexArrays(iY, iX, iX + iY)
    gg.plotImageLarge(img, amp_range=(0, 750), figsize=(10, 8))
    gg.show()
Пример #2
0
def test_2x2_mask(mbits=0o377):
    pc2x2 = SegGeometryEpix10kaV1(use_wide_pix_center=False)
    X, Y = pc2x2.get_seg_xy_maps_pix_with_offset()
    mask = pc2x2.pixel_mask_array(mbits, width=5, wcentral=5)
    mask[mask == 0] = 3
    iX, iY = (X + 0.25).astype(int), (Y + 0.25).astype(int)
    img = gg.getImageFromIndexArrays(iX, iY, mask)
    gg.plotImageLarge(img, amp_range=(-1, 2), figsize=(10, 10))
    gg.show()