<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de globo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextodegloboCar
        {mso-style-name:"Texto de globo Car";
        mso-style-priority:99;
        mso-style-link:"Texto de globo";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=ES link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Dear all,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I am experiencing an
extremely annoying problem again and again in recent developments when I
perform calculations that rely on linear interpolators. This is related to the
fact that, even if I check if the point is inside the buffer (
interpolator-&gt;IsInsideBuffer( point ), when performing the interpolation
sometimes the buffer tries to access and index that is outside bounds and the
program crashes, because the interpolated point lies very close to the
boundaries. This at least happens with LinearInterpolateImageFunction. I even
had to implement my own dirty interpolator with extra bounds checking, which is
slower but safer.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Should not the
interpolator check if any of the indexes that it has to access might be out of
bounds? If so I can open an issue in Mantis with an example test program (I
cannot post this right now since I have to extract the offending code from my
prototype). How could this be handled without severely affecting the performance?
Somehow each interpolator knows which would be the extent of pixels that will
be accessed but I think this is not made explicit anywhere in the interpolator.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Any other ideas to
tackle this problem?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks in advance.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Iván Macía<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<div align=center>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
 <tr>
  <td style='background:#00AFDB;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal><img width=211 height=126 id="Imagen_x0020_1"
  src="cid:image001.gif@01CB0E35.4B6580F0" alt="Vicomtech logotipo"><span
  style='font-size:12.0pt'><o:p></o:p></span></p>
  </td>
  <td style='background:#00AFDB;padding:0cm 0cm 0cm 0cm'>
  <div align=center>
  <table class=MsoNormalTable border=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td style='padding:0cm 0cm 0cm 0cm'>
    <div align=center>
    <table class=MsoNormalTable border=0 cellpadding=0>
     <tr>
      <td style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>Iván&nbsp;Macía&nbsp;Oliver</span></b><span
      style='font-size:12.0pt'><o:p></o:p></span></p>
      </td>
     </tr>
     <tr>
      <td style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>Investigador&nbsp;/ Researcher</span><span style='font-size:
      12.0pt'><o:p></o:p></span></p>
      </td>
     </tr>
     <tr>
      <td style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>eSalud &amp; Aplicaciones&nbsp;Biomédicas&nbsp;/ eHealth
      &amp; Biomedical&nbsp;Applications</span><span style='font-size:12.0pt'><o:p></o:p></span></p>
      </td>
     </tr>
     <tr>
      <td style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'><a href="mailto:imacia@vicomtech.org"><span
      style='color:blue'>imacia@vicomtech.org</span></a></span><span
      style='font-size:12.0pt'><o:p></o:p></span></p>
      </td>
     </tr>
    </table>
    </div>
    </td>
   </tr>
  </table>
  </div>
  </td>
  <td width=10 style='width:7.5pt;background:#00AFDB;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal>&nbsp;<span style='font-size:12.0pt'><o:p></o:p></span></p>
  </td>
  <td style='background:#00AFDB;padding:0cm 0cm 0cm 0cm'>
  <div align=center>
  <table class=MsoNormalTable border=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td style='padding:0cm 0cm 0cm 0cm'>
    <div align=center>
    <table class=MsoNormalTable border=0 cellpadding=0>
     <tr>
      <td colspan=2 style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>Mikeletegi&nbsp;Pasealekua,&nbsp;57&nbsp;-
      Parque&nbsp;Tecnológico<o:p></o:p></span></p>
      </td>
     </tr>
     <tr>
      <td colspan=2 style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>20009&nbsp;Donostia&nbsp;- San&nbsp;Sebastián&nbsp;- Spain<o:p></o:p></span></p>
      </td>
     </tr>
     <tr>
      <td width=1 style='width:.75pt;padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>Tel:&nbsp;<o:p></o:p></span></p>
      </td>
      <td style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>+[34] 943 30 92 30<o:p></o:p></span></p>
      </td>
     </tr>
     <tr>
      <td width=1 style='width:.75pt;padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>Fax:&nbsp;<o:p></o:p></span></p>
      </td>
      <td style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'>+[34] 943 30 93 93<o:p></o:p></span></p>
      </td>
     </tr>
     <tr>
      <td colspan=2 style='padding:0cm 0cm 0cm 0cm'>
      <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
      color:white'><a href="http://www.vicomtech.org/" target="_blank"><span
      style='color:blue'>www.vicomtech.org</span></a><o:p></o:p></span></p>
      </td>
     </tr>
    </table>
    </div>
    </td>
   </tr>
  </table>
  </div>
  </td>
  <td width=10 style='width:7.5pt;background:#00AFDB;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal>&nbsp;<span style='font-size:12.0pt'><o:p></o:p></span></p>
  </td>
  <td style='background:#00AFDB;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal align=right style='text-align:right'><img border=0
  width=134 height=126 id="Imagen_x0020_2"
  src="cid:image002.gif@01CB0E35.4B6580F0"><span style='font-size:12.0pt'><o:p></o:p></span></p>
  </td>
 </tr>
</table>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div align=center>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
 <tr>
  <td style='padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial Narrow","sans-serif";
  color:gray'>Este mensaje se dirige exclusivamente a su destinatario. La
  información incluida en el presente correo es confidencial sometida a secreto
  profesional, especialmente en lo que respecta a los datos de carácter
  personal, cuya divulgación está prohibida, en virtud de la legislación
  vigente. Si usted no es el destinatario legítimo y lo ha recibido por error o
  tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo
  comunique por este medio y proceda a destruirlo o borrarlo. En todo caso
  abstengase de utilizar, reproducir, alterar, archivar o comunicar a terceros
  el presente mensaje así como los ficheros anexos, todo ello bajo pena de
  incurrir en responsabilidades legales. Cualquier opinión contenida en este
  correo es exclusiva de su autor y no representa necesariamente la opinión de
  ASOCIACIÓN CENTRO DE TECNOLOGÍAS DE INTERACCIÓN VISUAL Y COMUNICACIONES
  VICOMTech (en adelante Vicomtech) El emisor no garantiza la integridad,
  rapidez o seguridad del presente correo, ni se responsabiliza de posibles perjuicios
  derivados de la captura, incorporaciones de virus o cualesquiera otras
  manipulaciones efectuadas por terceros.<br>
  Con motivo de la entrada en vigor de la Ley 34/2002, de 11 de julio, de
  Servicios de la Sociedad de la Información y de Comercio Electrónico, le
  informamos que pueden revocar en cualquier momento, de forma sencilla y
  gratuita, el consentimiento para la recepción de mensajes de vicomtech.org en
  <a href="mailto:info.lopd@vicomtech.org"><span style='color:blue'>info.lopd@vicomtech.org</span></a>.
  </span><span style='font-size:12.0pt'><o:p></o:p></span></p>
  </td>
 </tr>
</table>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>