Compute and draw a contour

thierry@thierryfourni's icon

Hello,

A new (?) topic and question. Does anybody know if there is an
existing method to compute the single curve / contour containing all
the objects of a binary image ? I've searched the Examples patches
and forum, also the cv.jit helps, but I didn't find it.

Best,

Thierry

----------------------------------------
Thierry Fournier
http://www.thierryfournier.net

Mattijs's icon

Hi Thierry,

In what format would you need that contour? A box, an oval, a set of lines?

Mattijs

Quote: thierry@thierryfourni wrote on Sat, 09 February 2008 16:04
----------------------------------------------------
> Hello,
>
> A new (?) topic and question. Does anybody know if there is an
> existing method to compute the single curve / contour containing all
> the objects of a binary image ? I've searched the Examples patches
> and forum, also the cv.jit helps, but I didn't find it.
>
> I put an example image on :
> http://picasaweb.google.com/thierryfournierparis/Jitter
>
> Best,
>
> Thierry
>
> ----------------------------------------
> Thierry Fournier
> http://www.thierryfournier.net
>
>
>
>
>
----------------------------------------------------

thierry@thierryfourni's icon
Ignotus's icon
Mattijs's icon

So yea.. implementing Graham's algorithm with Jitter objects doesn't seem like a good idea and I don't think someone already wrote an external. You'd have to code your own. Since there are many code examples out there, that looks doable.

Mattijs

yair reshef's icon

many moons ago we used this.built from scratch by Roman K. a talented coder i met.
the idea was based on a remark by Nesa about the possibility of checking collision using alpha masks.
this gives the benefit of working with organic shapes of all forms and shapes, and is very responsive.
the code is java. check it out... and now on youtube (http://www.youtube.com/watch?v=GbMRvKMyNfE).
expand, clean, rinse, use and share.

thierry@thierryfourni's icon
thierry@thierryfourni's icon
yair reshef's icon

you need to compile the java, its only source.

the key3.jxf is part of the [ketstone2] subpatch, you can reset it by sending a bang to [send resetKeyst2] or just delete the whole subpatch if you dont need to correct the projection.

attached is key3 and the compiled source

yair reshef's icon

here it is

thierry@thierryfourni's icon
thierry@thierryfourni's icon

Hello,

Does someone know the right versions of Python + py + pyext to use
with MaxMSP 4.6, compatible between themselves, and the place where I
could download it ?

More generally, any sharing of Python - MSP interfacing would be
greatly appreciated.... (We're trying Convex hull in Python ;-)

Best

Thierry

----------------------------------------
Thierry Fournier
http://www.thierryfournier.net

marius.schebella's icon

the link is http://grrrr.org/ext/beta/max/osx/
since it comes with no documentation I put very basic helppatches online
http://www.parasitaere-kapazitaeten.net/max_msp/pyext_help
marius.

Thierry Fournier wrote:
> Hello,
>
> Does someone know the right versions of Python + py + pyext to use with
> MaxMSP 4.6, compatible between themselves, and the place where I could
> download it ?
>
> More generally, any sharing of Python - MSP interfacing would be greatly
> appreciated.... (We're trying Convex hull in Python ;-)
>
> Best
>
> Thierry
>
> ----------------------------------------
> Thierry Fournier
> http://www.thierryfournier.net
>
>
>

thierry@thierryfourni's icon
thierry@thierryfourni's icon
Rob Ramirez's icon

it looks like it's looking for python version 2.5.

marius.schebella's icon

Robert Ramirez wrote:
> it looks like it's looking for python version 2.5.

yes, that makes sense. I *think* python 2.5 is shipped with the apple
development tools?? but not 100% sure..
marius.

thierry@thierryfourni's icon
thierry@thierryfourni's icon
florent colautti's icon

hi
there is a max object whose make convexhull process now ???
in the same way there is an object whose can give surface area of 2D point projection ?

regards
0-0