home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / Geneve / 9640news / CAT07 / DGTZRRT.ARK < prev    next >
Text File  |  2006-10-19  |  8KB  |  141 lines

  1. ?
  2. ** Using the "ImageWise" Video Digitizer with the TI 99/4A **
  3.    =======================================================
  4.  
  5.    by Steve Langguth
  6.  
  7.  
  8.      For the past year or so, thanks to the authors of a couple of "RLE"
  9. programs, users of the TI 99/4A have been able to view and use high resolution
  10. pictures created by the users of other brands of computers.  It was great being
  11. able to take advantage of all of the picture files that could be found on the
  12. various online databases and BBS's.  But it also made me realize that something
  13. was missing in the world of the 99/4A.  Users of other brands of computers
  14. (even the 8 bit antiques like the Commodore 64 and Atari 800) had access to
  15. video digitizers, and TI users did not.  Now, this might not seem like a very
  16. big problem to some users, but to those of us who enjoy working with computer
  17. graphics it was.  Notice that I said "was".  Finally, users of the TI 99/4A can
  18. digitize images from video cameras and VCR's and put those images into a format
  19. that can be used by the various bitmap mode drawing programs available for our
  20. computer.  This article describes how it can be done.
  21.  
  22.  
  23. The Hardware
  24. ------------
  25.  
  26.      In the May and June 1987 issues of BYTE magazine, Steve Ciarcia (BYTE's
  27. resident hardware genius) described a video digitizing system that he had
  28. developed called the "ImageWise" system.  This system is composed of two
  29. parts, a "digitizer/transmitter" and a "receiver/display".  Each of these parts
  30. is contained on a separate printed circuit board.  You can buy each board
  31. already assembled or in a kit with all the needed components.  Or, you can just
  32. buy the printed circuit boards (with an EPROM containing the control software)
  33. and then buy all the other necessary components yourself.  I chose to buy the
  34. components myself, and the two parts of the system wound up costing me a total
  35. of about $150 each.
  36.      When the boards arrived in the mail, they came with detailed instruction
  37. manuals and parts lists, including the various part numbers for several of the
  38. larger electronics supply companies.  Even though I had never attempted a
  39. hardware project before, I had little trouble getting everything put together.
  40. (I DO have a friend next door, who is a 99/4A hardware "genius", so I could
  41. afford to be a little "braver" than I would have been if I had to attempt a
  42. project like this totally by myself!)  And once I finally got all the
  43. components soldered into the correct holes (don't ask!!), both boards worked
  44. great.
  45.      The digitizer/transmitter (d/t) board is, as the name implies, the part of
  46. the "ImageWise" system that does the digitizing.  Unlike some digitizers made
  47. specifically for other computer systems that take several seconds to digitize a
  48. complete image (and therefore require your "subject" to not move or your VCR to
  49. be set to "freeze frame"), the ImageWise d/t board captures a complete image in
  50. 1/60th of a second.  It accepts video signals from a standard TV camera
  51. (either B&W or color), VCR, laserdisc player, or camcorder, and stores the
  52. picture as 244 lines of 256 pixels with 64 levels of grey scale for each pixel.
  53. The d/t board then converts the stored video image to RS-232 serial data which
  54. can be transmitted to any computer with a RS-232 port or to the ImageWise
  55. receiver/display board.
  56.      The receiver/display board (r/d) accepts serial data from the d/t board or
  57. files dowloaded from a computer.  It converts this data back into a picture
  58. suitable for display on a composite video input monitor.
  59.      Together the two boards allow the user to create a file of digital data
  60. that represent an analog video image, use a computer to manipulate this file,
  61. and then display the newly "manipulated" image.  The July and August 1987
  62. issues of BYTE magazine both contain articles describing interesting image
  63. processing techniques that can be performed on files created this way.
  64.  
  65.  
  66. The Software
  67. ------------
  68.  
  69.      As I stated earlier, each board comes with an EPROM that controls what
  70. that board is doing.  But you still need programs for your computer that allow
  71. you to accept the data being sent from the d/t board to the RS-232 and to send
  72. a data file from your computer to the r/d board.  Also, if you want to display
  73. the digitized images on your computer monitor, you need a program that converts
  74. the data file into a form that your computer can use.  If I was an IBM PC user,
  75. this would have been no problem, because the boards come with a disk containing
  76. programs for the PC that both "grab" and "show" images.  But because my little
  77. 99/4A is an "orphan", I had to write these programs myself.
  78.      To "grab" a digitized image from the d/t board, you simply connect the
  79. DB-25 connector on the board to the RS-232 of the computer.  The program needs
  80. to send a one byte code to the board to tell it what resolution to use (the
  81. choices are 256x244, 128x122, and 64x61), then when the program sends to the
  82. board a character >11 (XON), the board "instantly" digitizes the picture and
  83. begins sending it to the computer. (The baud rate being used is selected by a
  84. DIP switch on the board itself.)  If the computer must take a "time out" to
  85. write to disk, the program simply sends a character >13 (XOFF) and the board
  86. stops sending until it receives another "XON".  The file created by this
  87. program is LARGE.  The board sends one byte for each screen pixel.  The values
  88. of these bytes range from >00 for black to >3F for a pixel that is white.  This
  89. adds up to a file of 246 sectors for each picture digitized.  Of course, the
  90. file contains a lot more "data" than 99/4A users can use, because even though
  91. our high resolution screen is 256x192, we only have 15 colors to work with and
  92. each pixel cannot be colored "independently".  Perhaps more of this data will
  93. be put to use on the Myarc 9640.
  94.     To "show" a digitized image on the r/d board, the process is just reversed.
  95. A file is simply read one record at a time and then sent to the r/d board via
  96. the RS-232.  I found that I had to use assembly language to write the "grab"
  97. program, but a very simple Extended Basic program worked fine for the "show"
  98. program.
  99.      Finally, because I wanted to use my digitized images on my 99/4A, I wrote
  100. a program that will "convert" the information in the files created by the d/t
  101. board into a picture that can be saved in TI-Artist format.  At first I decided
  102. to simply "turn on" a pixel if it was above a certain value and leave it
  103. "turned off" if the value was below the "dividing line".  Unfortunately, this
  104. simple method really didn't give as much detail to the pictures as I knew was
  105. possible.  After a lot of experimentation I was able to create an "algorithm"
  106. that turns on more pixels in the areas that are supposed to be darker, and less
  107. in the lighter areas.  The converted picture has much less resolution than the
  108. original, but it CAN be saved as a TI-Artist picture file (25 sectors), which
  109. can then be modified or printed out.
  110.  
  111.  
  112. Summary
  113. -------
  114.  
  115.      The ImageWise video digitizer system is a fairly simple to build,
  116. relatively inexpensive, very powerful video digitizer that CAN be used with the
  117. 99/4A.  If all you are interested in is digitizing video from a camera or VCR,
  118. all you really need is the digitizer/transmitter board, which can be assembled
  119. for about $150-$175 dollars.  To use the digitized images on the 99/4A itself,
  120. you will have to "sacrifice" a lot of the resolution.  But because the system
  121. sends its data through a standard RS-232 interface, it will continue to be
  122. compatible as you "upgrade" your graphics capabilities.
  123.  
  124.  
  125.      If you have any questions that I haven't answered, just leave them on the
  126. message base here on GEnie, or write to me at :
  127.  
  128.                   Steve Langguth
  129.                   2956 South Barnes
  130.                   Springfield, MO  65804.
  131.  
  132.      Also, if you would be interested in buying the programs I wrote to use
  133. with the ImageWise system and the 99/4A, I will galdly sell them to you for $10
  134. --$11, if I have to supply the disk (hey, I've got to pay for this baby
  135. somehow !!!).
  136.  
  137.  
  138. Download complete.  Turn off Capture File.
  139.  
  140.  
  141.