Discussion:
setting the information of an image into a vector, avoiding masked zones
(too old to reply)
Damien Sirjacobs
2007-07-04 11:00:50 UTC
Permalink
Hi

I am searching for the most fast and memory efficient way to realise
the following operation with matlab (avoiding as far loops of for and
if):


creating a vector of data composed by appending the columns of a
large
matrix IMAGE, but excluding the points defined by a second matrix
MASK
of the same size as IMAGE.


Thank you for suggestions!!


D. S.
david bateman
2007-07-06 09:03:23 UTC
Permalink
Post by Damien Sirjacobs
Hi
I am searching for the most fast and memory efficient way to realise
the following operation with matlab (avoiding as far loops of for and
creating a vector of data composed by appending the columns of a
large
matrix IMAGE, but excluding the points defined by a second matrix
MASK
of the same size as IMAGE.
Thank you for suggestions!!
D. S.
Consider

image = reshape(1:16,4,4)
mask = [zeros(4,1),ones(4,1),zeros(4,2)]
image (mask == 0)

D.

Continue reading on narkive:
Search results for 'setting the information of an image into a vector, avoiding masked zones' (Questions and Answers)
10
replies
Spyware,trojan horses,what r they?
started 2006-06-07 14:57:43 UTC
security
Loading...