Sort by

recency

|

7 Discussions

|

  • + 0 comments

    Join us as we usher UV Adhesive Glue Manufacturer in a new era of materials and electronic adhesives solutions where innovation knows no bounds.

  • + 0 comments

    hello

  • + 0 comments

    When selecting a Bathroom Fitters London, it's essential to choose a trustworthy, knowledgeable business with a history of producing high-quality work

  • + 0 comments

    They have a tendency to be constructive. Their attitude way that they devise self-pleasant prophesies with the aid of pushing ahead and looking ahead to the pleasant final results of angel number. Undeterred by using minor and once in a while even essential setbacks, the lucky man or woman will persevere, which has a greater danger of manufacturing a superb final results.

  • + 0 comments
    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,0,0,0,0,0,0,0,0],
        [0,1,1,1,1,1,1,1,0,0],
        [0,0,0,0,1,1,1,1,0,0],
        [0,0,0,0,1,1,1,1,0,0],
        [0,0,0,1,1,1,1,1,0,0],
        [0,0,0,0,1,1,1,1,0,0],
        [0,0,0,1,1,0,0,0,0,0],
        [0,0,0,0,0,0,0,0,0,0],
        [0,0,0,0,0,0,0,0,0,0]
    ])
    
    s = np.array([
            [1,1,1],
            [1,1,1],
            [1,1,1]])
    
    unique, freq = np.unique(dilation(a,s), return_counts=True)
    print("dilation", freq[1])
    
    unique, freq = np.unique(erosion(a,s), return_counts=True)
    print("erosion", freq[1])
    
    
    unique, freq = np.unique(closing(a,s), return_counts=True)
    print("closing", freq[1])
    
    unique, freq = np.unique(opening(a,s), return_counts=True)
    print("opening", freq[1])
    
    
    # plt.imshow(dilation(a,s), cmap='gray')
    # plt.show()