मॉर्फोलॉजी

Python में इमेज प्रोसेसिंग

Rebeca Gonzalez

Data Engineer

बाइनरी इमेजेस

Python में इमेज प्रोसेसिंग

मॉर्फोलॉजिकल फ़िल्टरिंग

  • बाइनरी इमेजेस के लिए बेहतर
  • ग्रेस्केल तक बढ़ाई जा सकती है

Python में इमेज प्रोसेसिंग

मॉर्फोलॉजिकल ऑपरेशंस

  • डाइलेशन
  • इरोजन

Python में इमेज प्रोसेसिंग

स्ट्रक्चरिंग एलिमेंट

Python में इमेज प्रोसेसिंग

स्ट्रक्चरिंग एलिमेंट

Python में इमेज प्रोसेसिंग

scikit-image में शेप्स

from skimage import morphology

square = morphology.square(4)
[[1 1 1 1]
 [1 1 1 1]
 [1 1 1 1]
 [1 1 1 1]]
rectangle = morphology.rectangle(4, 2)
[[1 1]
 [1 1]
 [1 1]
 [1 1]]
Python में इमेज प्रोसेसिंग

scikit-image में इरोजन

from skimage import morphology

# Set structuring element to the rectangular-shaped selem = rectangle(12,6)
# Obtain the erosed image with binary erosion eroded_image = morphology.binary_erosion(image_horse, selem=selem)
Python में इमेज प्रोसेसिंग

scikit-image में इरोजन

# Show result
plot_comparison(image_horse, eroded_image, 'Erosion')

Python में इमेज प्रोसेसिंग

डिफ़ॉल्ट selem के साथ बाइनरी इरोजन

# Binary erosion with default selem
eroded_image = morphology.binary_erosion(image_horse)

Python में इमेज प्रोसेसिंग

scikit-image में डाइलेशन

from skimage import morphology

# Obtain dilated image, using binary dilation
dilated_image = morphology.binary_dilation(image_horse)

# See results plot_comparison(image_horse, dilated_image, 'Erosion')
Python में इमेज प्रोसेसिंग

scikit-image में डाइलेशन

Python में इमेज प्रोसेसिंग

अभ्यास करते हैं!

Python में इमेज प्रोसेसिंग

Preparing Video For Download...