IT-LIST Digest 18Topics covered in this issue include:  1) Sample MSVC++ plug-in source	by Mike Ellis   2) Win95 Driver for DT3155 Frame Grabber	by Peter Herdman   3) Re: Fourier Transform	by Pogany Lajos   4) Plugin Development	by  5) Hough transform (fwd)	by C Bower   6) Re: Adding a scanner to IT	by  7) Zip-Files	by Ron Hoebe   8) density measurements and immage  reversal	by NEAL MUSTO   9) Re: Zip-Files	by "Henrik Guldberg Pedersen"  10) can't open new stack	by "GERALD POLLACK"  11) Re: can't open	by "Heberto Ghezzo"  12) IT 1.23	by (Mary Mager)----------------------------------------------------------------------Date: Wed, 17 Apr 1996 14:51:58 -0400From: Mike Ellis To: IT-LIST@sparky.uthscsa.eduSubject: Sample MSVC++ plug-in sourceMessage-ID: <>Hi,Just downloaded the IT and the SDK. A couple of questions.We manufacture electron microscopes. Our digital image format extends the TIFF standard by storing various microscope operating parameters and other info in proprietary TIFF tags.  IT opens our images with no problems, but we'd like to write plug-ins that read and write our tags and use the info to recreate our micron bars, status lines, and annotations. >From a quick look at the SDK, it appears that the file filter interface is hardwired to Borland OWL. We'd prefer to use MSVC++ simply because it's the devil we know (besides I've no room on disk for yet another 100Mb compiler suite )Is there a way to write file filter plug-ins without resorting to OWL and, for the purpose of getting started, has anyone got MSVC++ 2.0 sources for a working plug-in skeleton that does something rudimentary, e.g., simply copying the existing image?Thanks,Mike-- Mike Ellis,  Software Manager,  ElectroScan Corp.66 Concord St., Wilmington, MA 01887 USA vox, 508-988-0062 fax" 'Tis good to be merry and wise." -- George Chapman------------------------------Date: Thu, 18 Apr 96 09:18:15 gmtFrom: Peter Herdman To: Image Tool List Subject: Win95 Driver for DT3155 Frame GrabberMessage-ID: We are currently using Image tool as a development system for a paper related imaging application under Win 95.  We have a Data Translation DT3155 frame grabber and are keen to acquire images directly into Image tool with this card.We have seen the addition of the Win NT plug-in and eagerly await the Win 95 version.  Do you have an idea when, if ever, this will be available? If not, is there any other way of acquiring images directly e.g. using the Win 95 driver supplied with the card.Keep up the good work!Andy Falconer, Head Of Diagnostics(using PT Herdman eMail address!)Arjo Wiggins Appleton, England------------------------------Date: Mon, 22 Apr 1996 20:51:43 +0200From: Pogany Lajos To: it-list@sparky.uthscsa.eduSubject: Re: Fourier TransformMessage-ID: <>At 09.20 1996.04.11.=02=82=02=08X=0F#=12 +0600, you wrote:>Hello IT users,>>Recently on the server>>>Has anybody experience in doing fourier-transforms and frequency-domain=20>>filtering on images using ImageTool? Is there a pre-made tool box or=20>>would the process involve programming?>>We can easily implement a fast fourier transform FFT and the inverse, but==20>I would like to know from the users how they would use this capability in==20>their work.  We have not implemented this because in our experience we=20>have not had the need.  Please let us know what you would use this for=20>and exactly what algorithms would need to be implemented to provide the=20>necessary support for using FFT.>>Thanks for your support.>>S. Brent Dove                            Voice: (210) 567-3333>Diagnostic Sciences                      Fax:   (210) 567-3334>University of Texas                      Email:>Health Science Center                    Web:>San Antonio, TX    USA                   ftp:>>>I'm very interested in knowing the frequency domain of our pictures whichare magnetic domain pictures, and if You have a method ready, please do thisalgorithm. I cant say what algorithm would be the best, you should betterknow this, I want to filter out the shot noise from my pictures and wouldlike to know the different frequency component of the pictures. If You tellme, what kind of algorithm I can choice, I try to find out the bestThanksLajos Pogany Res.Inst. for Solid State Physics of the=20Hungarian Academy of Sciences XII. Konkoly Thege 29-33 ; Budapest Hungary P.O.Box 49 H-1525phone:  00-36-1-169-9499fax:  00-36-1-169-5380e-mail: Wed, 24 Apr 96 16:31:04 BSTFrom: it-list@sparky.uthscsa.eduSubject: Plugin DevelopmentMessage-ID: <9604241531.AA13430@tesla>I am considering writing ImageTool plugins and to familiarise myself with it, I decided to try and compile the median.cpp source file obtained with ImageTool into a dll. I am using Borland C++ and have succeeded in compiling it, yet when Borland tries to link it, it gives four errors:Linker Error: Unresolved external 'RWDib::Depth() const' referenced from   module MEDIAN.CPPLinker Error: Unresolved external 'RWDib::IsGrayScale() const' referenced   from module MEDIAN.CPPLinker Error: Unresolved external 'RWDib::RWDib(const RWDib &)'   referenced from module MEDIAN.CPPLinker Error: Unresolved external 'RWDib::ActualWidth() const' referenced   from module MEDIAN.CPPIs it looking for another library which I don't have? Do I need to inform the linker to look for some other library? Or, is it something else?Thanks againJohnny Glenn------------------------------Date: Wed, 24 Apr 1996 16:55:40 +0100 (BST)From: C Bower To: it-list@sparky.uthscsa.eduSubject: Hough transform (fwd)Message-ID: Hi all,	I'm am currently trying to measure the size distribution of oil droplets in a viscoelastic suspendinding fluid.  I capture images of the emulsion whilst it is undergoing shear between parallel plates, using a specialised shear-cell microscope stage with CCD camera atop.  The images I obtain are have reasonable contrast but I have difficulty in thresholding the images to high-lite the oil droplets.  I know that the Hough transform can be used to identify lines or circles in an image by exploring all the parameters of 'Hough Space' but I don't have the time (or expertise) to implement such an algorithm. I think that such an algorithm would be extremly useful for a variety of image processing applications where the object of interest is Spherical (circular).(I also realise that the best way to facilitate thresholding would be to improve the contrast in the original images, but this is proving difficult) Is anyone planning to implement such an algorithm as a plug-in, or as an extra feature on the next version of Image Tool?Any comments would be appreciated.CheersChris	      . -- .          Chris's post is brought to you today by             (      )         the letters L, F, and by the number 0.            ( (/oo\) )                                                            ( \''/ )                               WW                             ( \/ )      wwwwww                   /__\                           (      )   w"ww  ww"w                | oo |   _WWWWW_               (        ) W   o""o   W    (o)(o)    (|_()_|) /  o o  \        oo   (          )W  ______  W  w"      "w    \__/ (|  __O__  |)    w"()"w  (        ) "w \_\/_/ w" W  -====-  W  /|\/|\  \ \___/ /     W -==- W   ' -- '  ww""wwwwww""ww "w      w"  |||||||| /-------\      "wwww"     =  =    |||||||||||| w""""""""""w |||||||||=========|    w"    "w    =  =    ||||||||||||W            W|||||||||=========|      Elmo    Big Bird     Oscar    Cookie Monster  Bert     Ernie    ------------------------------Date: Wed, 24 Apr 1996 08:48:05 GMTFrom: LEONG%CCF.dnet@hermes.dra.hmg.gbTo: it-list@sparky.uthscsa.eduSubject: Re: Adding a scanner to ITMessage-ID: <>This describes my own experience with using a hand scanner with ImageTool v1.23. I have a Genius ScanMate/Color Pro hand scanner (bought it only a few monthsago). It came with a Windows 3.1 TWAIN compatible driver. Unfortunately, this driver does not work with any 32 bit application software such Paint Shop Pro 3.12 and ImageTool running on Windows 95. But it does work with 16 bit application software running on Windows 95. So, I downloaded the TWAIN driver manager from (Refer to the IT manual p.8. for more details). Installed it. And now my scanner does work with my 32bit application software including the TWAIN Twacker suppliedwith the driver manager package. Well, what do you know, it does not workproperly with ImageTool !! ImageTool allows me to scan the picture using the original driver (supplied with the scanner). But unfortunately, when I try to transfer the picture into ImageTool, it just ignores the data and goesback to the blank screen with no error message. I have no problem with scanning in a picture uisng Paint Shop PRO, savingit as TIFF file (not compressed),and then loading it into ImageTool as a TIFFfile. Mmmm... May be the next release might have this bug licked. ------------------------------Date: Thu, 25 Apr 1996 09:22:56 +0200From: Ron Hoebe To: it-list@sparky.uthscsa.eduSubject: Zip-FilesMessage-ID: <>All IT users,When I download the zip-files I cannot extract them. I get an error. I triedit A few time and also extracting with different programs.Ron_/ _/  _/ _/ _/ _/_/ _/ _/ _/ _/_/ _/_/Ron Hoebe_/Laboratory for Radiobiology_/University of Amsterdam_/ AMC F0-219_/Meibergdreef 15_/1105 AZ Amsterdam_/The Netherlands_/Phone: (+31) 20 5664743_/Fax: (+31) 20 5664440_/E-Mail: R.Hoebe@amc.uva.nl_/ _/  _/ _/ _/ _/_/ _/ _/ _/ _/_/ _/------------------------------Date: Thu, 25 Apr 1996 10:36:37 -0400 (EDT)From: NEAL MUSTO To: it-list@sparky.uthscsa.eduSubject: density measurements and immage  reversalMessage-ID: <>I am new to IT and have been playing around with it for a short while. Iam interested in using it to make density measurement of scanned inimmages of electrophoresis gels. I have read past postings regardingthis topic and find I need to use a "plug-in". Is there any move a footto product such an item. For us "programming impared" we are clue=lessas to how to do this. Such density measurements are at the core ofquantitative biology, so I suspect someone must have worked it out.anybody???Second question: I cannot figure out how to invert the values of animage, that is to make the black areas 256 and the white 0. Any helphere??ThanksNeal Fri, 26 Apr 1996 09:18:45 +0000From: "Henrik Guldberg Pedersen" To: it-list@sparky.uthscsa.eduSubject: Re: Zip-FilesMessage-ID: <>> All IT users,> > When I download the zip-files I cannot extract them. I get an error. I tried> it A few time and also extracting with different programs.> > RonDid you make sure, that the transfer mode was binary rather than Ascii?? This might give you some problems.---------------------------------------------------------Henrik Guldberg PedersenInstitute ChemistryTechnical University of Denmark, bld. 204DK-2800 LyngbyPhone: + 45 45 25 22 47Fax: + 45 45 93 48 86E-Mail: hgp@kemi.dtu.dkURL:          Fri, 26 Apr 1996 13:19:08 EST5EDTFrom: "GERALD POLLACK" To: it-list@sparky.uthscsa.eduSubject: can't open new stackMessage-ID: <199604261726.NAA29994@sirocco.CC.McGill.CA>I'm a new user (about 1 week) of IT (1.23, running under Win 95). For the first couple of days it generally worked okay and then, suddenly, began to produce the folloing error upon attempted opening of a new stack:    IT caused an invalid page fault in module IT.EXE at 0137:00455ce9I've tried downloading the *.zip files again and reinstalling, but the problem persists. I suspect, from the latter, that the problem is likely to be in Win95 rather than in IT, but if anyoneknows how to solve it I'd be grateful for your help.      Jerry PollackGerald PollackDept. of Biology, McGill University, 1205 ave. Docteur Penfield,Montreal, Quebec, Canada H3A 1B1Phone: (514) 398-6418    Fax: (514) 398-5069------------------------------Date:          Fri, 26 Apr 1996 14:33:08 EST5EDTFrom: "Heberto Ghezzo" To: it-list@sparky.uthscsa.eduSubject: Re: can't open itsrc.zipMessage-ID: <199604261838.OAA08663@sirocco.CC.McGill.CA>Sorry but I tried several times, I also downloaded the version of pkunzip in your machine. Every time I tried to unzip it stops at 'pip....h' in a listing af files that one has a length of zero. There is another file also with length of Zero.Can you please fix the ITSRC file.......MerciR. Heberto Ghezzo  Ph.D.Meakins-Christie LabsMcGill UniversityMontreal - Fri, 26 Apr 1996 19:07:38 -0800From: (Mary Mager)To: IT-LIST@sparky.uthscsa.eduSubject: IT 1.23Message-ID: I finally got a chance to try version 1.23. I am running IT on the Pentiumattached to my SEM. The TIFF images are acquired using Quartz PCI, usuallyat 1024 X 840 X 8 bit. When I tried to analyse these images in IT1.23, Igot a "GDI failure" and fatal crash on "Object Analysis". If I re-size theimages in PCI to 640 X 525, then IT does the whole job flawlessly. Thisproject is sizing polystyrene spheres, 1 to 2 microns diameter.My suggestion for IT in a future edition is some method to manually "cut"and "join" particles in the binary image, when your best efforts atseparating the touching particles with "Open", "Close", "Erosion" and"Dilation" just won't quite do it. In my sample, the spheres sometimeswon't separate, and the objects that represent two or more spheres touchingmust be rejected. A simple pointer that changed a pixel to the other value,0 or 1, would do very nicely to break the connection.Thank you for an excellent program.Regards,MaryMary MagerElectron MicroscopistMetals and Materials Eng, UBC309 - 6350 Stores Rd.Vancouver, B.C. V6T 1Z4CANADAtel: 604-822-5648, fax: 604-822-3619email: of IT-LIST Digest 18