Sort by

recency

|

8 Discussions

|

  • + 0 comments

    import numpy as np

    image = np.array([

    [0, 0, 1, 1, 0],

    [0, 0, 1, 1, 0],

    [0, 0, 1, 1, 0],

    [1, 1, 1, 1, 1]

    ])

    row = image.shape[0]

    column = image.shape[1]

    arr = np.copy(image)

    for i in range(row):

    for j in range(column):

    if i in [1,2]:

    # Check up and down

    if image[i-1,j] == 0 or image[i+1, j] == 0:

    arr[i,j] = 0

    else:

    arr[i,j] = 0

    for i in range(arr.shape[0]):

    line = ''

    for j in range(arr.shape[1]):

    line += str(arr[i][j])

    print(line)

  • + 0 comments

    The solution to this answe is solved in this website.

  • + 0 comments

    When choosing a bookie, it is important to nhà cái uy tín do your research and look for one that meets these criteria, as well as any other specific needs or preferences you may have.

  • + 0 comments

    Users of time-shifted media iptv service provider services have greater control over their watching experience since they may record and watch back TV programmes and other information at a later time.

  • + 1 comment
    import numpy as np
    import matplotlib.pyplot as plt
    from skimage.io import imread, imshow
    from skimage.draw import disk
    from skimage.morphology import (erosion, dilation, closing, opening,
                                    area_closing, area_opening)
    from skimage.color import rgb2gray
    
    a = np.array([
        [0,0,1,1,0],
        [0,0,1,1,0],
        [0,0,1,1,0],
        [1,1,1,1,1]
    ])
    
    s = np.array([
            [1],
            [1],
            [1]])
    
    image = np.array(erosion(a,s))
    print(image)