
Al momento, stai seguendo questa domanda
- Vedrai gli aggiornamenti nel tuofeed del contenuto seguito.
- Potresti ricevere delle e-mail a seconda delle tuepreferenze per le comunicazioni.
how to create a region of interest in simulink
-
-
Link diretto a questa domanda
https://it.mathworks.com/matlabcentral/answers/107556-how-to-create-a-region-of-interest-in-simulink
-
-
Link diretto a questa domanda
https://it.mathworks.com/matlabcentral/answers/107556-how-to-create-a-region-of-interest-in-simulink

Risposta accettata

13 Commenti
- 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.
Più risposte (2)
21 Commenti
4 Commenti
Vedere anche
Categorie
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)
Asia-Pacifico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)