#
# $Id: TODO,v 4.9 2004/06/22 08:18:59 hut66au Exp $
#
# Things to do.

Improvements:
=============

For PSL:
--------

	- follow-up re. running out of resources
	- spacebar problem (see pointfiles)

From Richard:
-------------

What we'd like to be able to do is access the fltk drawing routines
through the socket. The objects that get drawn should have the same
behaviour under zoom and translation as the pointfiles.

The primitives we'd like to have access to are lines, disks and text
with colour. Positions should be defined in image coordinates. I'm not
sure what else fltk provides, but it might be nice to leave room for
expansion to include splines or whatever else is available. The simple
things are all that is needed now though.

	- Also he thinks that the toolbar should start with one 
	of the buttons depressed, because people are getting confused 
	about how to get out of it

From Mark/Changming:
--------------------
	- Prettier/more colourful 1-D profile print/save as .PS.
	- Various issues with multispectral images I forgot to write down.
		* do a fit-to-mean +/- 2.5 sigma rather than char (ignore outliers)

From Hugues:
------------

	- Expand on the idea above to draw bounding boxes, ellipses,
	  etc, from the segmented object description.
	- Keep this TODO list up to date, it's infuriating.
	- add the aspect ratio as one of a set of characteristic the
	  image should keep track off, just like gamma at present. Add
	  the ability to specify the aspect ratio on the command line
	  and/or with a simple dialog.
	- Add a `save overlay' option. Useful after manual bivariate
	  histogram segmentation.
	- Write output header for raw images.
	- Save rotation and flip status.
	- EXIF 2.2 (library for that).
	- Lossless JPEG transf.	
	- Dynamic run-time load of libraries, esp. ImageMagick.
	- Save to more known formats.
	- bicubic interpolation, both zoom out and in.

Known bugs:
===========

CRASHES:
-------
	- 3D rotations with non-8-bit data and overlay crashes:

#0  0x0807d54d in imageIO::rotate3Dgeneric(long (*)(int, int, int), long) (this=0x8191080, myrotf=0x807d68a <transf_rot_3d_up>,
    nbplanepix=35840) at /home/talbot/projects/sourceforge/imview/imtransform.cxx:641
641                             q[myrotf(x,y,z)] = *p++;
(gdb) p p
$1 = (unsigned char *) 0x4087f008 ""
(gdb) p myrotf
$2 = (rot3dtransf *) 0x807d68a <transf_rot_3d_up>


	- Z images with large number of samples crashes


SHOWSTOPPERS:
-------------

	- Under cygwin the server doesn't work, Imview craps out with "Bad system call"
	- Incorrect behaviour for Z-IMAGE DOUBLE images under WinXP (content is incorrect).
	- Imview compiles under mingw32 for Linux (cross-compiler) but doesn't run 8-(


INCONVENIENCES AND INCONSISTENCIES:
-----------------------------------

	- resize still a problem sometimes. Imview gets itself into a weird
	  state with incorrect limits. Specifying a complete redraw
	  should clear everything but doesn't.
	- There is also a bug in the 1D profile when there is an
	  overlay - the overlay information is displayed in the profile.
	- last line and last column of image often missing when scrollbar
   	  are present.
	- The profile box is one pixel too short at the end.
	- Printing of non-image items (text, points, etc) missing.
	- Points and rotations: normally defined points follow
	  rotations (if you define a few points then rotate the image
	  the points also rotate), but then if you re-open the image the
	  points stay stuck where they were last!
	- Related to the above is still the lack of rotation
	  grammar. A rotated image which was rotated should still be
	  rotated when reopened!
	- Move to the middle of the screen. Sometimes for no apparent
	  reason Imview moves to the middle of the screen. This seems to
	  be happening if the main window resises and this is infurating
	  on dual-screen setups. Update: this may be an FLTK artifact.
	- Too many menu items remain accessible when no image is displayed.
	- Documentation and man page do not match software version.
	- 3D rotations with `image fits window' works but changing plane resets the window!
	- Under cygwin, problems with Imagemagick (dependence on X11).






Last changes: 
Hugues Talbot	23 May 2004 -- version 1.1.4
