|
|
Fast Image-Matrix iteration |
|
F.Roemer |
Gast
|
|
Beiträge: ---
|
|
|
|
Anmeldedatum: ---
|
|
|
|
Wohnort: ---
|
|
|
|
Version: ---
|
|
|
|
|
|
Verfasst am: 01.03.2015, 13:18
Titel: Fast Image-Matrix iteration
|
|
Hello!
I have the following problem:
I have an int8 imagematrix in which I want to "draw" an objekt.
the object is described by a (x,2) matrix:
First column are the x indxes
Second column are the y indexes of the object
of course i can do this with a loop like:
in the white image the object will apear black
but this is very slow
I thought about something faster like this:
but it is not working.
I tried diffrent ways but it's not working
When I do something like:
an object is "drawn" in the image bur it's just an completly black rectangle like a boundingbox filled black.
Has anybody an idear?
Thanks!
|
|
|
|
|
F.Roemer |
Gast
|
|
Beiträge: ---
|
|
|
|
Anmeldedatum: ---
|
|
|
|
Wohnort: ---
|
|
|
|
Version: ---
|
|
|
|
|
|
Verfasst am: 01.03.2015, 19:39
Titel: dissolved
|
|
I got it...
if someone ever will have the same problem to insert a scatterd element into a matrix the Keyword is "linear Indexing".
|
|
|
|
|
Einstellungen und Berechtigungen
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
|
|
Impressum
| Nutzungsbedingungen
| Datenschutz
| FAQ
| RSS
Hosted by:
Copyright © 2007 - 2024
goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.
|
|