<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Personally, I would always prefer a fragment shader over fiddling with curve3d in GEM :-) This is probably what you want: https://www.geeks3d.com/20140213/glsl-shader-library-fish-eye-and-dome-and-barrel-distortion-post-processing-filters/5/</div>

<div> </div>

<div>It might need some modification depending on the kind of texture and GLSL version your using.</div>

<div> </div>

<div>Christof</div>

<div> </div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 17. Juli 2019 um 21:27 Uhr<br/>
<b>Von:</b> "Csaba Láng" <langcsaba@gmail.com><br/>
<b>An:</b> pd-list@lists.iem.at<br/>
<b>Betreff:</b> Re: [PD] fish eye camera distortion correction</div>

<div name="quoted-content">
<div>
<div>Thanks for the ideas.</div>
</div>

<div>Luckily I will snap the pix just once a second or two. Hope the processor can handle it.</div>

<div>Which correction is easier, curve3d or the shader?</div>

<div> 
<div class="gmail_quote">
<div class="gmail_attr">On Wed, 17 Jul 2019 at 21:04, Jack <<a href="mailto:jack@rybn.org" onclick="parent.window.location.href='mailto:jack@rybn.org'; return false;" target="_blank">jack@rybn.org</a>> wrote:</div>

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">Sure, use a framebuffer with [gemframebuffer] to capture offscreen your<br/>
scene.<br/>
The problem is to send back your texture produce by [gemframebuffer] in<br/>
pix_ domain to use [pix_movement] and [pix_multiblob], fortunately there<br/>
is [pix_snap] for this (this process is quite slow, it depends on your<br/>
hardware).<br/>
Look at :<br/>
Help => Gem => examples => 04.pix/ => 26.framebuffer_readback.pd<br/>
to see how to use it.<br/>
<br/>
A note, instead off [curve3d] it is also possible to use shaders (on<br/>
fragment) to do the correction of the lens distorsion.<br/>
++<br/>
<br/>
Jack<br/>
<br/>
<br/>
<br/>
Le 17/07/2019 à 20:36, Csaba Láng a écrit :<br/>
> Looks good, but now a bigger problem came up.<br/>
><br/>
> My aim is to correct the fish eye distortion for pix_movement and<br/>
> pix_multiblob analyses.<br/>
> Which means first I have to make the curve3d correction and then use<br/>
> those pixels in pix_multiblob.<br/>
> Is it possible?<br/>
><br/>
> On Wed, Jul 17, 2019 at 8:16 PM Johnny Mauser<br/>
> <<a href="mailto:joson.android@googlemail.com" onclick="parent.window.location.href='mailto:joson.android@googlemail.com'; return false;" target="_blank">joson.android@googlemail.com</a> <mailto:<a href="mailto:joson.android@googlemail.com" onclick="parent.window.location.href='mailto:joson.android@googlemail.com'; return false;" target="_blank">joson.android@googlemail.com</a>>> wrote:<br/>
><br/>
>     Maybe gems [curve3d]? <br/>
><br/>
>     Csaba Láng <<a href="mailto:langcsaba@gmail.com" onclick="parent.window.location.href='mailto:langcsaba@gmail.com'; return false;" target="_blank">langcsaba@gmail.com</a> <mailto:<a href="mailto:langcsaba@gmail.com" onclick="parent.window.location.href='mailto:langcsaba@gmail.com'; return false;" target="_blank">langcsaba@gmail.com</a>>><br/>
>     schrieb am Mi., 17. Juli 2019, 20:10:<br/>
><br/>
>         Hi list,<br/>
>         is there an easy way to correct fish eye camera image distortion?<br/>
>         I think if a vortex kind of tool.<br/>
>         Best,<br/>
>         Popesz<br/>
>         _______________________________________________<br/>
>         <a href="mailto:Pd-list@lists.iem.at" onclick="parent.window.location.href='mailto:Pd-list@lists.iem.at'; return false;" target="_blank">Pd-list@lists.iem.at</a> <mailto:<a href="mailto:Pd-list@lists.iem.at" onclick="parent.window.location.href='mailto:Pd-list@lists.iem.at'; return false;" target="_blank">Pd-list@lists.iem.at</a>> mailing list<br/>
>         UNSUBSCRIBE and account-management -><br/>
>         <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br/>
><br/>
><br/>
> _______________________________________________<br/>
> <a href="mailto:Pd-list@lists.iem.at" onclick="parent.window.location.href='mailto:Pd-list@lists.iem.at'; return false;" target="_blank">Pd-list@lists.iem.at</a> mailing list<br/>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br/>
><br/>
<br/>
<br/>
<br/>
<br/>
_______________________________________________<br/>
<a href="mailto:Pd-list@lists.iem.at" onclick="parent.window.location.href='mailto:Pd-list@lists.iem.at'; return false;" target="_blank">Pd-list@lists.iem.at</a> mailing list<br/>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a></blockquote>
</div>
</div>
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a></div>
</div>
</div>
</div></div></body></html>