2-D to 1-D

Dec 9, 2006 at 3:21pm

2-D to 1-D

I’ve got a 2-D one plane (actually one-bit) matrix – a live video
that has been thresholded.

I want it to be turned into a 1 dimensional matrix of the same width,
where, if any pixel along a column in the original is non-zero, than
the only pixel after the conversion is also non–zero. But if the
whole column is “black” (zero) then so is this one.

Ideas? Thanks,

nathaniel

http://nathanielstern.com

#29122
Dec 10, 2006 at 4:52pm

Sorry – found it! Nice patch…

http://www.synthesisters.com/hypermail/max-msp/May06/45508.html

nathaniel

http://nathanielstern.com

On Dec 9, 2006, at 3:21 PM, nathaniel wrote:

> I’ve got a 2-D one plane (actually one-bit) matrix – a live video
> that has been thresholded.
>
> I want it to be turned into a 1 dimensional matrix of the same
> width, where, if any pixel along a column in the original is non-
> zero, than the only pixel after the conversion is also non–zero.
> But if the whole column is “black” (zero) then so is this one.
>
> Ideas? Thanks,
>
> nathaniel
> http://nathanielstern.com

#90231

You must be logged in to reply to this topic.