
Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
how to create a region of interest in simulink
-
-
Utiliser le lien direct vers cette question
https://fr.mathworks.com/matlabcentral/answers/107556-how-to-create-a-region-of-interest-in-simulink
-
-
Utiliser le lien direct vers cette question
https://fr.mathworks.com/matlabcentral/answers/107556-how-to-create-a-region-of-interest-in-simulink

Réponse acceptée

13 commentaires
- read image in, convert to grayscale double
- stdfilt to identify areas of low standard deviation within a 9x9 neighborhood (i.e. the compare to 5). This indicates tracks. All numbers were chosen by trial + error
- dilate horizontally (rectangle [1x50]) because tracks are horizontal
- erode vertically to remove noise between tracks
- Sum each row (recieve a column vector)
- if there are more than 100 true pixels in a row, it's a track (wooohoo!)
- Only look at the first row (selector)
- Identify when the first row goes from being a zero to a one (difference - compare to one).
- Use the StopCallback to sum up how many ones there are, i.e. the total number of tracks and put this in the workspace as NTies.
Plus de réponses (2)
21 commentaires
4 commentaires
Voir également
Catégories
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)