home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / a / aim / !Aim2 / Aim2 < prev    next >
Text File  |  1992-08-06  |  7KB  |  107 lines

  1. Aim2
  2.  
  3. ****************************
  4.  
  5. Preamble
  6.  
  7. What a great program this is.  The only problem is that it is almost impossible to use, it's even harder than trying to set the VCR to record 2 programs whilst you're on holiday !! (unless you've read this)
  8.  
  9. I was lucky enough to be given a demo on how to use the package recently an found that once you get into it there really isn't a problem as long as you keep it simple to start with.  So this is it, my first time users guide to Aim2.
  10.  
  11. NOTE I am like the one eyed man in the valley of the blind.  What I say could be wrong .. I'm no expert (perhaps it helps)
  12.  
  13. Another NOTE you will need a version of ChangeFSI or sonething to get your sprites into Aim format.  You'll also need !Edit eventually.
  14. *****************************
  15.  
  16. Intro
  17.  
  18. First I think it is important to understand that the program comprises a very wide range of image processing facilities which give the user huge scope for analysing images.  Very useful for the scientific user but more of him (or Her) later, for now I would like to concentrate on the everyday user.  I would guess that most people would like to simply clean up images, perhaps taken with some sort of digitiser or scanner so we will start there.
  19.  
  20. Loading and clicking on the Aim icon will show 5 windows, 4 of the windows are image windows (A,B,C & D) and the 5th is the macros windows.  If the thought of macros worries you then read on 'cus it isn't that hard once you get going.  For the moment we won't worry about macros though.
  21.  
  22. *****************************
  23.  
  24. Guided Tour
  25.  
  26. !) Get an image loaded into Aim by clicking Menu in any of the 5 windows and selecting Image dir, drag Trui (Not Trui+) into window A.  Note that the image is in Aim format. Trui+ is an extra bit of data to go with the Trui image file.
  27.  
  28. If you have an ordinary sprite file you must convert it to Aim format with ChangeFSI.  My version of ChangeFSI (05/02/89) won't do it but an upgrade was promissed soon.  If you don't have this then you are snookered, if you do then please send me a copy ! (I believe that Aim format is available from the command line but I've not looked into it).
  29.  
  30. 2) As I like to keep Image A as the original the first thing that I'm going to do is to copy it into Image B.  This is an arithmetical operation (believe it or not) and can be found in the Grey Operations menu (Grey Ops).  Select Gery Ops, Arit Ops, copy.  You should find that the Query window opens, this contains info about the copy command.  The default command is copy A B which is what you want so you only need to click OK.  If you want to copy from A to C simply alter the B to a C.  You should notice that the command is typed into the Macros window.
  31.  
  32. 3) Now to start doing something.  Applying a filter to the image will make a significant difference.  The best filter to use is the Laplace filter.  Select Grey Ops, Lin Filters, laplace (Note not nlaplace).  The default is to filter a and put the result into b but change it to filter from b into c (change a to b and b to c).  The image in c should be an improvement.
  33.  
  34. 4) Most of the image is still fairly grey, the whites arn't white and the Blacks arn't black.  This is because not all of the grey scale is used.  This can be seen by showing the grey scale histogram.  Use Utils, Misc, Hist and alter the Value to be image B or C rather than A.  You should see that the histogram doesn't extent to the full width od the image (although there is already an improvement of C over B).  To make this better you need to use the equalise operation.  Select Grey Ops, Point Ops, equal.  Set Input image to C and Output to D.  
  35.  
  36. You should now have a fairly good image.  You may like to show the histogram of D now to see the improvement.
  37.  
  38. *********************************
  39.  
  40. Introduction to Macros
  41.  
  42. So far so good (I hope).  This is all well and good but we've only used 3 functions from the 1000s available, what about all the others ?
  43.  
  44. Well it's really a matter of trial and error and seeing what other people have done.
  45.  
  46. A nice way to process images is to write a program to do it for you.  This program is called a macro.  The nice thing about this is that you can alter one part of it fairly easily without having to go through the whole routine again.  This may not strike you as worth bothering with at the moment but it can really make a huge difference even in the very early stages of using Aim and more detailed work is almost impossible without Macros.  Trial and error is easy this way !
  47.  
  48. *******************************
  49.  
  50. Writing Macros
  51.  
  52. You'll need Edit (or something similar).
  53.  
  54. 1) Open an ordinary text window and type in copy a b.  Save it.  Drag the text file into the macros window and the command should be carried out.
  55.  
  56. 2) Edit the text file and add a new line : hist b. save this and drag into the macros window, you get the idea ?
  57.  
  58. 3) Now add : equal b c
  59. hist c
  60. laplace c d
  61.  
  62. This shows the result if you equalised before filtering.
  63.  
  64. 4). This image may be a little rough for you, Load the macro (Text file) into edit and add the softer image in A to the image in D with the line add a d.
  65.  
  66. You may want to experiment with some other filters etc.  If you save this macro as "Sharp" you'll have the first macro in your library.  This could be used with almost image.
  67.  
  68. ***************************************
  69.  
  70. Look at some of the other macros and see what they do, _Sharpen is very similar to what we have done.
  71.  
  72. Other examples show how it is possible to strip an image down to the important bits.
  73.  
  74. The Macro acrosbm is a bench mark test to remove the rubbish and expose the important part of a cross.  Something similar could be written to improve sprties prior to tracing.
  75.  
  76. Demo1 shows how an image of the moon can be improved to reveal craters etc.
  77.  
  78.  
  79. Demo 3 shows hoe Aim can be used to reveal the way the cells are lying in a magnified image
  80.  
  81.  
  82. There is plenty to play with !
  83.  
  84. If you write any interesting macros, or if you have any comments or if you have a version of ChangeFSI (a PD version !!) that will output to Aim then I'd love to hear from you.
  85.  
  86. I hope that the above helps
  87.  
  88. Bob Harding
  89. 40 Bremhill
  90. Nr Calne
  91. Wiltshire
  92. SN11 9LD
  93.  
  94. 0249 813209
  95.  
  96.  
  97. PS
  98.  
  99. From what I understand Aim was written by students at Delft University.  They are developing itas best they can with their limited resources.  
  100.  
  101. They need cash.  
  102.  
  103. If you are using Aim then you really ought to make a donation to the cause.  Linginuity are the people who will supply you with the latest version of Aim2 and a manual for £24.00 (I think).  If you want to help but not £24.00s worth then send something (money I mean) to Woulter Kauffman (I think that is the way to spell it) at Linginuity, Halesworth, Suffolk IP1 ODX.  I am sure that he will do the honorable deed.
  104.  
  105.  
  106.  
  107.