<div dir="ltr"><div><div><div><div><div><div><div>Miguel,<br><br></div>Thank you for your answer.<br><br></div>I was not considering that the demo system would guess or<br>know whether all the input images must be the same size<br>or not. That is why is wrote "a way of indicating" to the demos<br></div><span class="">system that images should be the same size. In the same way<br></span></div><span class="">one can indicate to the demo system that the images must be<br></span></div><span class="">gray-level, we could ask it for images of the same size. This<br></span></div><span class="">case is not that strange, and as for gray-level, having a<br>common solution is better that handling it in each demo.<br><br></span></div><span class="">rafael<br> </span><div><div><div><div><div><div><div><div><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 27, 2014 at 10:07 PM, Miguel Colom <span dir="ltr"><<a href="mailto:colom@cmla.ens-cachan.fr" target="_blank">colom@cmla.ens-cachan.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">Quoting rafael grompone von gioi <<a href="mailto:grompone@gmail.com" target="_blank">grompone@gmail.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
I have two technical questions about demos. I'm not<br>
sure if this is the right mailing list to ask. If not, could<br>
you please tell me which is the right one?<br>
</blockquote>
<br></span>
Hi Rafa,<br>
I think the discuss list is more appropriate for these kind of questions, since most of the people who write demos receives the mailing list and can therefore give useful hints.<br>
I'll forward this email there.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The questions are the following:<br>
<br>
1) When using 2 or more input images, is there a way<br>
of indicating to the input handling routines that all the<br>
images should be the same size, so that is handled<br>
automatically? Or I must check this in my app and<br>
generate an error page in case is not?<br>
</blockquote>
<br></span>
The demo system has support only to retrieve the number of input images the demo needs to use.<br>
But it doesn't check the sizes of the images, since it doesn't know if it's necessarily an error the fact that the images have different sizes.<br>
<br>
For example, an algorithm to find matching points between a pair of images could admit images of different sizes.<br>
<br>
Thus, it's the actual demo that should check if the sizes are different.<br>
For example:<br>
if (image(self.work_dir + 'input_0.png').size !=<br>
image(self.work_dir + 'input_1.png').size):<br>
return self.error('badparams',<br>
"The images must have the same size")<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2) I was wondering why my demo was not using the<br>
full browser width. I then discovered that the reason<br>
is that the CSS in <a href="http://www.ipol.im/local.css" target="_blank">http://www.ipol.im/local.css</a> includes:<br>
<br>
#content{max-width:64em;}<br>
<br>
imposing a fixed maximal width to the contents of the<br>
web pages. Is there any reason to impose this limit to all pages?<br>
If it is necessary for the ipol front page and articles' web pages,<br>
it may be a good idea to separate in two groups: text pages<br>
and demo pages. By the way, I noticed this option is overwritten<br>
in the archive pages.<br>
</blockquote>
<br></span>
I didn't design the CSS, so I'm not sure if there's a reason for that.<br>
Please discuss it with Nicolas Limare.<br>
<br>
Best,<br>
Miguel<br>
<br>
<br>
</blockquote></div><br></div></div></div></div></div></div></div></div></div></div></div>