[IPOL discuss] single page sub-image selection

Nicolas Limare nicolas.limare at cmla.ens-cachan.fr
Fri Oct 29 21:33:42 CEST 2010


> > How can I click on two points of the image and send this information
> > in a single html form?
> 
> You can't. My idea was to do something similar to
> http://demotest.ipol.im/~nil/cm_fds_mcm_amss/ 
> 
> 3 possibilities on the "params" page:
> 
> 1. click a button to use all the image -> go to the "run" page
> 2. click on the image -> get back to the "params" page
> 3. click once again on the image -> cut the rectangle and go to the
> "run" page
> 
> I will show you how to do it tomorrow.

Here is my proposition, on my demotest version:
    http://demotest.ipol.im/~nil//blm_rgbprocess/

All the input pre-processing is done with one params.html template,
and one app.rectangle() function. The template must be flexible and
show optional parts depending on the parameters it receives, and the
function must handle different steps.

Once app.rectangle() has done the input pre-processing, the user is
re-directed to the wait/run/results trilogy.

I think this is better for the user (one single page for the input),
and for us (less files and functions to maintain).

The demo files are here:
http://mw.cmla.ens-cachan.fr/~nil/tmp/blm_rgbprocess.tgz
This is probably not compatible with the global code you can download
now, because I have to push all the recent codebase to the public
repository. I plan to do it tomorrow (if the Chaba typhoon is not too
hard), or monday/tuesday, and write the updated documentation.

@jose-luis: I didn't import your last commit ("rgbprocess: test on
adding credits to input.html, base_app modifications in comment")
in my code because it seems to break the templates.

-- 
Nicolas LIMARE
http://nicolas.limare.net/                         pgp:0xFA423F4F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://tools.ipol.im/mailman/archive/discuss/attachments/20101030/1b5b92e1/attachment-0001.pgp>


More information about the discuss mailing list