<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">What is the right SWIG typemap for the following function?</div><br>void filter(int height, int width, unsigned int *<span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span>input_array_2d, unsigned int *<span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span><span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span>input_array_2d);<br><br><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">The input and output arrays are bi-dimensional. The input array is read-only and the output array is write-only. I tried something like:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default">%apply (int DIM1, int DIM2, int* INPLACE_ARRAY2) {(int height, int width, int* <span class="gmail_default"></span><span style="font-family:Arial,Helvetica,sans-serif">input_array_2d</span>), (int height, int width, int* <span class="gmail_default"></span><span style="font-family:Arial,Helvetica,sans-serif">input_array_2d</span>)};</div><div class="gmail_default"><br></div><div class="gmail_default">But it does not seem to be correct.</div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thank you!</div><br><br></div></div>