home *** CD-ROM | disk | FTP | other *** search
/ Really Useful CD 1 / ReallyUsefulCD1.iso / extras / graphics / _greyedit / docs / guide next >
Encoding:
Text File  |  1991-05-08  |  22.3 KB  |  585 lines

  1. >Guide
  2. _______________________________________________________________________________
  3.  
  4. GreyEdit 1.02                                  ---------------------------
  5.                                                 This program is SHAREWARE
  6. Version date : 08 May 1991                     ---------------------------
  7.                                           please refer to the end of this guide
  8.  
  9. ----------------
  10. - Introduction -
  11. ----------------
  12. GreyEdit can process and edit 256-level greyscale (digitized) images. In
  13. addition it can grab video images from the Zeridajh Video Digitiser podule,
  14. when this is present.
  15.  
  16. Several extremely fast filter algorithms, histogram equalization, range
  17. expansion and inversion may be applied to whole images. In addition, noise
  18. pixels may be edited by hand, and sides of images may be cut off, optionally
  19. aided by zoom functions for precise editing.
  20.  
  21.  
  22. -------------------------
  23. - Using the application -
  24. -------------------------
  25. To start up GreyEdit, double-click on the '!GreyEdit' icon.
  26.  
  27. It will install itself on the icon bar, and clicking MENU on the iconbar icon
  28. will give the usual 'Info' and 'Quit' options. Clicking SELECT or ADJUST will
  29. pop up the options menu, but some options will not be selectable at this stage.
  30.  
  31. GreyEdit accepts and outputs the Clear graphics file format, which plays an
  32. intermediate role in my other image processing applications !Translator and
  33. !Creator. Clear files can also be processed by !ChangeFSI, by Roger Wilson.
  34. Only greyscale, <=8 bits per pixel Clear files are accepted bu GreyEdit. You
  35. can convert any colour image to a greyscale image by using Translator's
  36. 'Black and white' option. Refer to the end of this guide for more details.
  37.  
  38. Loading an image can be done in three ways :
  39. a) by dragging a greyscale Clear file to the GreyEdit icon on the icon bar
  40. b) by dragging a greyscale Clear file to the image window (when an image is
  41.    already loaded)
  42. c) by grabbing an image from a video source using the Zeridajh Video
  43.    Digitiser podule, when this is present (see below)
  44.  
  45. In addition, output may be to a 'tweaked' 256-colour sprite file, using the
  46. standard palette. Refer to 'Save Sprite' and 'Displaying greyvalues' for
  47. details.
  48.  
  49. When succesfully processed, the image will appear in a resizable, scrollable
  50. window. The title of the window will indicate the image's (file)name and the
  51. current zoom factors.
  52.  
  53.  
  54. -----------------
  55. - The main menu -
  56. -----------------
  57. Clicking MENU on the image window (when an image is loaded) or clicking
  58. SELECT or ADJUST on the iconbar icon will pop up the main menu. All menu
  59. items are explained in detail below.
  60.  
  61. --------------
  62. | Image info |
  63. --------------
  64. This icon leads to the image info window.
  65.  
  66. This window shows some information relating to the current image, such
  67. as resolution, size, etc..
  68.  
  69. --------
  70. | Grab |
  71. --------
  72. This icon gives access to a submenu of options that enable you to grab video
  73. images from the Zeridajh Video Digitiser podule. When the podule is not
  74. present, this icon will be shaded.
  75.  
  76. ---------------
  77. | Grab | Size |
  78. ---------------
  79. This icon leads to a submenu in which the size of the image to be grabbed may
  80. be selected. There are nine sizes available, ranging from 640x512 down to
  81. 160x128 pixels.
  82.  
  83. --------------------
  84. | Grab | Line skip |
  85. --------------------
  86. This icon gives access to a writable icon, in which you may enter the 'line
  87. skip' factor.
  88.  
  89. The line skip factor is the number of scanlines that will be skipped at the
  90. top of the video image that is being digitised. A value of zero selects the 
  91. default line skip (an equal number of scanlines above and below the picture
  92. is skipped). Any positive number may be entered, but, as a video image has a
  93. limited number of scanlines, values that are too large may cause the resulting
  94. image to be distorted.
  95.  
  96. ----------------------
  97. | Grab | Sensitivity |
  98. ----------------------
  99. This icon leads to a slider bar in which the sensitivity of the podule to the
  100. video signal may be changed from 0 (least sensitive) to 100% (most sensitive).
  101.  
  102. This icon is only available when a special chip is present on the podule
  103. through which the sensitivity is controlled, instead of the potentiometer at
  104. the back on the standard model. If this is not present, this icon is shaded.
  105.  
  106. -----------------------
  107. | Grab | Video signal |
  108. -----------------------
  109. This icon gives access to a video signal window.
  110.  
  111. This window will graphically display the synchronisation signals present in
  112. the video signal and enables strange or non-standard video signals to be
  113. identified. A rough classification of the present video signal is given at
  114. the bottom of the video signal window (usually 'No video signal' or 'Normal 
  115. video signal'). The signal represents the exclusive or of the vsync and hsync
  116. signals.
  117.  
  118. Clicking a mouse button will abort the plotting.
  119.  
  120. ----------
  121. | Pop up |
  122. ----------
  123. This icon leads to a submenu in which options may be set that influence the
  124. way the image is first displayed when it is popped up in the image window,
  125. or after a change of screen mode.
  126.  
  127. -------------------------
  128. | Pop up | Auto palette |
  129. -------------------------
  130. Clicking on this icon toggles the 'auto palette' flag.
  131.  
  132. When ON (i.e. ticked), a greyscale palette is automatically selected (in fact,
  133. its effect is exactly the same as clicking on the 'Grey palette' icon, refer
  134. to its discussion for more details).
  135.  
  136. ----------------------
  137. | Pop up | Auto zoom |
  138. ----------------------
  139. Clicking on this icon toggles the 'auto zoom' flag.
  140.  
  141. When ON (i.e. ticked), the image is automatically zoomed (see the discussion
  142. of the zoom options elsewhere) so that it fits the screen well (i.e. is
  143. fully visible).
  144.  
  145. -----------
  146. | Process |
  147. -----------
  148. This icon leads to a submenu of processing options. There are several fast
  149. image processing filters, and an option to switch on pixel-editing and cutting,
  150. among others.
  151.  
  152. For more technical details on the image processing algorithms, refer to
  153. 'Technical details'.
  154.  
  155. --------------------
  156. | Process | Invert |
  157. --------------------
  158. Clicking on this icon will 'invert' the image.
  159.  
  160. This means that the entire greyvalue scale from black to white is reversed,
  161. thus producing a 'negative' image. Its effect may be reversed by using it
  162. a second time.
  163.  
  164. --------------------
  165. | Process | Filter |
  166. --------------------
  167. This icon gives access to a submenu in which several image filters may be
  168. applied by clicking on their respective icons.
  169.  
  170. -----------------------------------
  171. | Process | Filter | Noise (soft) |
  172. -----------------------------------
  173. This filter will remove noise from the image.
  174.  
  175. This is the 'soft' version of the noise removal filters, which generally does
  176. not affect many pixels which are not 'noise pixels', but has the disadvantage
  177. that it will usually not succeed in removing all the noise from an image
  178. either.
  179.  
  180. -------------------------------------
  181. | Process | Filter | Noise (strong) |
  182. -------------------------------------
  183. This filter, like the soft noise filter, will remove noise from the image.
  184.  
  185. This 'strong' version will (as its name suggests) remove more noise, but has
  186. the disadvantage of possibly affecting much more pixels which aren't noise.
  187.  
  188. ----------------------------
  189. | Process | Filter | Gauss |
  190. ----------------------------
  191. This 'lowpass' filter has the effect of 'smoothing' the image.
  192.  
  193. The smoothing effect is somewhat weaker than that of the Average filter. As a
  194. 'smoother', it also effectively removes noise from the image, but the noise
  195. filters should be used by preference to do this, as a lot of image detail is
  196. lost using smoothing filters.
  197.  
  198. ------------------------------
  199. | Process | Filter | Average |
  200. ------------------------------
  201. This 'lowpass' filter is similar to the Gauss filter, but has a stronger 
  202. 'smoothing' effect.
  203.  
  204. ------------------------------
  205. | Process | Filter | Laplace |
  206. ------------------------------
  207. This 'highpass' filter will, in contrast to the Gauss and Average filters,
  208. enhance detail in the image.
  209.  
  210. It has the effect of amplifying local image details, but frequently has the
  211. side-effect of making the image look rather 'harsh'.
  212.  
  213. ---------------------------------------
  214. | Process | Filter | X-gradient Sobel |
  215. ---------------------------------------
  216. This filter effectively has a kind of '3-D' effect on the image. 
  217.  
  218. It reacts on horizontal 'gradients' in the image.
  219.  
  220. ---------------------------------------
  221. | Process | Filter | Y-gradient Sobel |
  222. ---------------------------------------
  223. This filter is similar to the X-gradient Sobel filter, but reacts on vertical
  224. 'gradients' in the image.
  225.  
  226. ------------------------------
  227. | Process | Filter | Maximum |
  228. ------------------------------
  229. This filter amplifies the presence of the peak greyvalues in the image.
  230.  
  231. ------------------------------
  232. | Process | Filter | Minimum |
  233. ------------------------------
  234. This filter amplifies the presence of the lowest greyvalues in the image.
  235.  
  236. --------------------
  237. | Process | Expand |
  238. --------------------
  239. Clicking on this icon will expand the greyvalue range of the image.
  240.  
  241. This algorithm determines the lowest and highest used greyvalues in the
  242. image, and expands the range between these values to the full 0-255 range.
  243. This increases the visual contrast of images that do not use the full
  244. available greyscale range.
  245.  
  246. ----------------------
  247. | Process | Equalize |
  248. ----------------------
  249. Clicking on this icon will perform 'histogram equalization' on the image.
  250.  
  251. This algorithm effectively measures the greyvalue contents of the image and
  252. attempts to balance greyvalue use. It can have a dramatic enhancing effect
  253. on some images. However, on low-contrast images it can have an equally
  254. dramatic degrading effect (they become much lighter and more 'harsh').
  255.  
  256. ------------------
  257. | Process | Edit |
  258. ------------------
  259. Clicking on this icon will toggle the 'edit' flag. It enables pixel editing
  260. and cutting of the image.
  261.  
  262. When ON (i.e. ticked), the image may be edited using the mouse pointer.
  263. While the mouse pointer is in the image window, its center will change to
  264. the colour of the pixel underneath it, so it is easier to identify a
  265. particular pixel among others.
  266.  
  267. Pixel editing
  268. -------------
  269. Pressing SELECT or ADJUST on a particular pixel enables you to remove noise
  270. pixels by hand :
  271.  
  272. - SELECT will change the greyvalue of the pixel to the average greyvalue of
  273.   its surrounding neighbors, i.e. it adds all eight surrounding pixels'
  274.   greyvalues and assigns this value DIV 8 to the target pixel. This 'smooths
  275.   out' noisy pixels which can thus be removed with accuracy by hand, in
  276.   preference to using the noise or smoothing filters.
  277. - ADJUST has a similar effect, except the target pixel's greyvalue itself
  278.   is considered in the averaging, i.e. the eight surrounding pixels'
  279.   greyvalues and the target pixel's greyvalue are added, and the resulting
  280.   value DIV 9 is assigned to the target pixel. This is equivalent to what the
  281.   'Average' filter does.
  282.  
  283. Cutting
  284. -------
  285. Pressing SELECT or ADJUST while holding down the SHIFT key enables you to
  286. cut off the top/left or bottom/right parts of the image :
  287.  
  288. - SELECT will cut off the top/left part of the image : the pixel clicked on
  289.   will become the new top left pixel
  290. - ADJUST will cut off the bottom/right part of the image : the pixel clicked
  291.   on will become the new bottom right pixel
  292.  
  293. NOTE : The zoom options may be used while editing, so it is very easy to
  294. locate and 'kill' individual pixels, and perform precision cutting. The pixel
  295. info window (see below) is useful as a further aid in precision cutting and
  296. editing.
  297.  
  298. ------------------------
  299. | Process | Pixel info |
  300. ------------------------
  301. Clicking on this icon will pop up the pixel info window.
  302.  
  303. When the edit flag is ON, this shows the coordinates and greyvalue of the
  304. pixel at the mouse pointer. The top coordinates shown in the window are pixel
  305. offsets from the top left of the image, while the bottom pair represents the
  306. offsets from the bottom right of the image.
  307.  
  308. This information may help when, for example, cutting has to be very precise
  309. (i.e. you know the number of pixels you want to cut off from the sides).
  310.  
  311. --------
  312. | Zoom |
  313. --------
  314. This icon gives access to a submenu of zoom options. These can be used to
  315. zoom in or out on the image. The current zoom factors are reflected in the
  316. image window's title (if not 1:1).
  317.  
  318. -----------------
  319. | Zoom | In/Out |
  320. -----------------
  321. These icons give access to zoom in and zoom out options respectively. Zooming
  322. takes place in steps of 2 (i.e. 2 times, 4 times, 8 times enlarged/reduced,
  323. etc.). By clicking one of the icons given in their submenu's, zooming can be
  324. performed in x ('x') or y ('y') directions individually, or both at the same
  325. time ('Both').
  326.  
  327. --------------
  328. | Zoom | 1:1 |
  329. --------------
  330. Clicking this icon will reset the zoom factors to 1 (i.e. the image is neither
  331. enlarged nor reduced).
  332.  
  333. --------
  334. | Misc |
  335. --------
  336. This icon leads to a submenu with miscellaneous options.
  337.  
  338. -----------------------
  339. | Misc | Grey palette |
  340. -----------------------
  341. Clicking on this icon will select a greyscale palette from black to white.
  342.  
  343. NOTE : In 256-colour modes, the palette remains unchanged, as it is not
  344. possible to get more than 16 shades of grey by changing it. Refer to
  345. 'Displaying greyvalues' for more details.
  346.  
  347. ---------------------
  348. | Misc | Save Clear |
  349. ---------------------
  350. This icon leads to a save file window, in which the image may be saved as
  351. a Clear file by entering a (leaf) filename and dragging the filetype icon
  352. to a directory viewer.
  353.  
  354. The Clear file saved will be 8-bit grey-scale.
  355.  
  356. Further processing (scale, rotate, mirror, Floyd-Steinberg dithering, etc.)
  357. or conversion to other graphics formats may be performed by using my other
  358. image processing applications Translator and Creator respectively. Refer to
  359. the end of this guide for more details.
  360.  
  361. ----------------------
  362. | Misc | Save Sprite |
  363. ----------------------
  364. This icon leads to a save file window, in which the image may be saved as
  365. a Sprite file by entering a (leaf) filename and dragging the filetype icon
  366. to a directory viewer.
  367.  
  368. The Sprite file saved will be 8-bit, with no palette (i.e. standard palette
  369. actually). The greyvalues of the image are mapped (1-1) to the closest
  370. colours in the standard 256-colour palette that represent them when the
  371. sprite is displayed on a monochrome monitor.
  372.  
  373. --------------------
  374. | Misc | Auto name |
  375. --------------------
  376. Clicking on this icon toggles the 'auto name' flag.
  377.  
  378. When ON, the leafnames for files to be saved are generated automatically
  379. from a list that may be entered in the writable icon in the submenu. The
  380. list consists of leafnames, seperated by comma's. The leafnames are taken
  381. cyclically from this list, so 'R,G,B' generates 'R', then 'G', then 'B',
  382. then 'R', then 'G', etc..
  383.  
  384. The current leafname is reset to the first in the list by :
  385. - Switching 'Auto name' to ON
  386. - Entering a new list in the writable icon
  387.  
  388. So, if, for any reason, you want to reset the current leafname to the first
  389. one in the list, simply switch the 'auto name' flag off, then on again.
  390.  
  391.  
  392. -------------------------
  393. - Displaying greyvalues -
  394. -------------------------
  395. As the Archimedes can display only 16 shades of grey, it is not possible
  396. to give a correct representation of the full 0-255 greyscale range of the
  397. image, even in 256 colour modes.
  398.  
  399. In 16, 4 and 2 colour modes, a selection of the 16 available greys is made
  400. to create a scale from black to white, and the full greyscale is simply mapped
  401. to the closest of these greys.
  402.  
  403. In 256-colour modes (and when saving an image as a sprite), the full greyscale
  404. of the image is mapped (1-1) to the colours of the standard 256-colour palette
  405. which closely represent them when the sprite is being displayed on a monochrome
  406. monitor (for example, using the mono video output on the back of the
  407. Archimedes). This is the only way to get more shades of grey on-screen.
  408.  
  409. To get the best possible result on colour monitors (i.e. using a maximum of
  410. 16 shades of grey), save the image as a Clear file and use Translator's
  411. Floyd-Steinberg dithering option (and the 'Current mode' and 'Greyscale'
  412. palette settings when dithering to non-256 colour modes).
  413.  
  414.  
  415. ---------------------
  416. - Technical details -
  417. ---------------------
  418. - The GreyEdit module
  419.  
  420. The SWI's contained in the GreyEdit module may be useful to users that wish
  421. to build their own image processing or digitizing applications. Refer to
  422. the file Docs.SWIs for detailed descriptions.
  423.  
  424. - Image filters
  425.  
  426. The filters apply a 'local' filtering algorithm to the image. Most filters
  427. are '3x3 local neighborhood' filters, which means that for every pixel in the
  428. image, the surrounding eight pixels are considered, together with the current
  429. value of the pixel, to compute a new pixel value according to the algorithm
  430. used.
  431.  
  432. Most algorithms attach 'weights' to these 9 pixels and calculate the new
  433. greyvalue by adding all (or some of) the pixel values, multiplied with these
  434. weights, and then divide the result by the total weight to average it.
  435.  
  436. All these filters map any pixels lying 'outside' the image to the nearest
  437. image pixel (i.e. this occurs for all target pixels at the 4 borders).
  438.  
  439. The individual filters are discussed below. The 'target' pixel is always
  440. the 'middle' pixel, and these terms are used interchangably. The number of
  441. pixels in the neighborhood of this 'middle' pixel that are considered depends
  442. on the filter.
  443.  
  444. Noise (soft)
  445. ------------
  446. If the pixel left to the target pixel is equal (in greyvalue) to the right
  447. pixel, the middle pixel is replaced with the left (=right) pixel value.
  448.  
  449. Noise (strong)
  450. --------------
  451. If the target pixel is either the maximum or the minimum among the north,
  452. south, east and west pixels, it is replaced with the average value of the
  453. north, south, east and west pixels (this is usually called 'outlier pixel
  454. removal' in image processing literature).
  455.  
  456. Gauss, lowpass filter
  457. ---------------------
  458. The target pixel becomes the weighted average of the greyvalues of the
  459. nw,n,ne, w,mid,e, sw,s,se pixels with corresponding weigths : 1,2,1,
  460. 2,4,2, 1,2,1 (i.e. the sum DIV 16 is calculated for the middle pixel).
  461.  
  462. Average, lowpass filter
  463. -----------------------
  464. Weighted average, all weights equal to 1 (i.e. result is sum DIV 9).
  465.  
  466. Laplace, highpass filter
  467. ------------------------
  468. Weighted average, with weights 0,-1,0, -1,5,-1, 0,-1,0 (i.e. sum is
  469. calculated, and a range check is done (<0 becomes 0, >255 becomes 255)).
  470.  
  471. Grad-x Sobel, highpass filter
  472. -----------------------------
  473. Weighted average, with weights -1,0,1, -2,0,2, -1,0,1 (i.e. sum is calculated,
  474. 127 is added, and a range check is done (<0 is 0, >255 is 255)).
  475.  
  476. Grad-y Sobel, highpass filter
  477. -----------------------------
  478. Weighted average, with weights -1,-2,-1, 0,0,0, 1,2,1 (calculation as under
  479. Grad-x Sobel filter).
  480.  
  481. Maximum
  482. -------
  483. The middle pixel becomes the maximum value of all nine pixels.
  484.  
  485. Minimum
  486. -------
  487. The middle pixel becomes the minimum value of all nine pixels.
  488.  
  489. - Histogram equalization
  490.  
  491. First, a 'cumulative histogram' is calculated that contains the cumulative
  492. frequencies of the greyvalues in the entire range (i.e. the cumulative value
  493. of greyvalue 255 is always equal to the total number of pixels in the image).
  494.  
  495. The cumulative histogram is then scaled down and used as a transformation
  496. factor table to map the old greyvalue range to the full 0-255 greyvalue range.
  497. This yields a new cumulative histogram graph that is as 'flat' as possible,
  498. i.e. the greyvalue content of the image has been 'balanced'.
  499.  
  500.  
  501. ----------------
  502. - Memory usage -
  503. ----------------
  504. GreyEdit automatically grabs the memory it needs to load/grab an image,
  505. and releases it again when the image is discarded (i.e. the image window
  506. is closed or a new image is loaded/grabbed) or cut down.
  507.  
  508. This ensures that it always runs in the minimum amount of memory and that
  509. you don't need to worry about how much memory to allocate to it. Users
  510. of 1Mb machines will appreciate this scheme, which enables larger images
  511. to be handled without trouble when multitasking with other applications.
  512.  
  513.  
  514. ------------------------
  515. - Translator & Creator -
  516. ------------------------
  517. These applications, which were also written by me, are essential companions
  518. to GreyEdit.
  519.  
  520. Translator reads a very large number of (mainly foreign) graphics formats,
  521. and can perform colour processing, dithering, scaling, rotate, etc.. It
  522. outputs either sprite or Clear files. All graphic formats accepted by
  523. Translator may be converted to grey-scale Clear files (to be used as input
  524. for GreyEdit) by using the 'Black and white' and Clear output options.
  525.  
  526. Creator creates a number of (mainly foreign) graphics formats, accepting
  527. Clear files and sprite files as input. It can create GIF, TIFF, AIM and
  528. PBMPlus formats at present. This enables you to port images to a large
  529. number of other computer platforms.
  530.  
  531. Translator and Creator are available from the address mentioned below and
  532. are part of my shareware image processing package.
  533.  
  534.  
  535. -----------
  536. - The end -
  537. -----------
  538. This application is Shareware, and part of the image processing package
  539. consisting of !Translator, !Creator and !GreyEdit.
  540.  
  541. I have put a lot of effort and time into these programs. Therefore, if you
  542. find them useful, I kindly ask you to register yourself as a user of these
  543. programs. The registration fee is just ú10 (ten english pounds).
  544.  
  545. Registration entitles you to free new versions of all the above mentioned
  546. applications when they become available, and improved support (and willingness
  547. to add special features). You will also give me an incentive to continue
  548. producing good software for the Archimedes, and keep on improving my existing
  549. applications.
  550.  
  551. If you want to register, or if you have praise, complaints, comments, bugs(!),
  552. or anything else to offer me, do not hesitate to write to
  553.  
  554. John Kortink
  555. Middelhuisstr. 17
  556. 7482 EL Haaksbergen
  557. The Netherlands
  558.  
  559. or send email to kortink@cs.utwente.nl
  560.  
  561. Important note : If you want Translator or Creator to handle a new format,
  562. always send me full information, and several example files.
  563.  
  564. New versions of the applications are available from the same address : just
  565. send ú1 to cover postage and a self-addressed envelope containing a 3.5" disc.
  566. As the applications are under continuous development, it is likely that you
  567. will get a more recent version.
  568.  
  569. NOTE : To register AND receive the latest versions of the applications, send
  570. ú11 in total, and don't forget the self-addressed envelope and disc.
  571.  
  572. Happy imaging !!!
  573.  
  574. _______________________________________________________________________________
  575.  
  576. !!! NOTE !!!
  577.  
  578. You may NOT change this application or use ANY part of it in other products
  579. without my approval. You may spread it freely (with *ALL* files included), but
  580. not for any profit. This software is provided 'as is'. Using it is entirely at
  581. your own risk.
  582.  
  583. _______________________________________________________________________________
  584.  
  585.