BaşlayınÜcretsiz başlayın

Extract objects

Extracting objects from the original image eliminates unrelated pixels and provides new images that can be analyzed independently.

The key is to crop images so that they only include the object of interest. The range of pixel indices that encompass the object is the bounding box.

For this exercise, use ndi.find_objects() to create a new image containing only the left ventricle.

Bu egzersiz, kursun bir parçasıdır

Biomedical Image Analysis in Python

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Create left ventricle mask
labels, nlabels = ____
lv_val = ____
lv_mask = np.where(____, 1, 0)
Kodu Düzenle ve Çalıştır