IT-LIST Digest 38Topics covered in this issue include:  1) MSVC Plug-ig	by Robert Smith   2) Re: MSVC Plug-ig	by "Don Wilcox"   3) regd imagetool	by Nirmala Kaldindi   4) MSVC++ plug ins/1D pixel integrations	by "Benjamin E. Nelms"   5) Re: MSVC++ plug ins/1D pixel integrations	by "Dr. Bin Yu"   6) Re: MSVC++ plug ins/1D pixel integrations	by "Don Wilcox"   7) Re: regd imagetool	by "Don Wilcox"   8) Plug-in Image Tools with MSVC++	by "Dr. Bin Yu"   9) Coefficients of filter kernels	by "Paul A. Roales"  10) Using VC++ to write ImageTool plug-ins.	by "Don Wilcox"  11) Re: Coefficients of filter kernels	by "Don Wilcox"  12) Mistake on Shadow west filter?	by "Paul A. Roales" ----------------------------------------------------------------------Date: Wed, 21 Aug 1996 14:28:10 -0400From: Robert Smith To: IT-LIST@sparky.uthscsa.eduSubject: MSVC Plug-igMessage-ID: <1.5.4.32.19960821182810.00672a7c@curtech.com>All:  I'm trying to write a simple acquisition plug-in in MSVC++.  Yes, I knowone would not willingly do this, but some of us are forced to use thesystem, and I believe that when one has learned all the undocumentedgotcha's, then it's not too hard to work in. (The latter is admittedly astatement of faith, not experience.)Anyway my DLL contains 3 functions, as below, and has an RC file containingthe strings 10000-10003.  Nonetheless, when I click 'Plug-in" and the nameof my DLL, I get a little box saying "Not a valid IT plug-in."  What have I left out?HANDLE  _declspec(dllexport) _stdcall  WinAcquisition(HWND);void  _declspec(dllexport) _stdcall  WinAbout(HWND);BOOL  _declspec(dllexport) WINAPI DllEntryPoint(HINSTANCE, DWORD, LPVOID);Bob             .  Robert A. Smith, Ph.D.  _____    .    Vision Systems' Analyst |     |<.      Current Technology, Inc. |_____|   .    (603) 868-2270     ^       .  ras@curtech.com    / \   /   \------------------------------Date: Thu, 22 Aug 1996 06:48:29 -0700From: "Don Wilcox" To: Subject: Re: MSVC Plug-igMessage-ID: <199608221355.GAA01761@dogbert.xroads.com>----------> From: Robert Smith > To: wilcox@xroads.com> Subject: MSVC Plug-ig> Date: Wednesday, August 21, 1996 12:26 AM> > All:>   I'm trying to write a simple acquisition plug-in in MSVC++.  Yes, Iknow> one would not willingly do this, but some of us are forced to use the> system, and I believe that when one has learned all the undocumented> gotcha's, then it's not too hard to work in. (The latter is admittedly a> statement of faith, not experience.)It is unfortunate that not all can use the One True Way, but the deepestsympathies of all who walk the Straight Path go out to you.> > Anyway my DLL contains 3 functions, as below, and has an RC filecontaining> the strings 10000-10003.  Nonetheless, when I click 'Plug-in" and thename> of my DLL, I get a little box saying "Not a valid IT plug-in."> >   What have I left out?> > HANDLE  _declspec(dllexport) _stdcall  WinAcquisition(HWND);> void  _declspec(dllexport) _stdcall  WinAbout(HWND);> BOOL  _declspec(dllexport) WINAPI DllEntryPoint(HINSTANCE, DWORD,LPVOID);> Nothing obvious.  You need to make sure that the names are actually beingexported correctly.  Run impdef, or dumpbin, or whatever the Great Deceivercalls their program, and see what names are being exported.  They should bein mixed case, spelled exactly like you have above, with absolutely noadditional decorations.  If you want, feel free to email me a zipped copy ofyour DLL and I will look at it.  If it turns out that The One Who Sucks AllLight Out of The Universe in fact does something bizarre to the exportednames, I will quickly modify 1.25 to adapt, since We Who Are Of Light are,if nothing else, extremely flexible.DonPS.  I was kidding...------------------------------Date: Thu, 22 Aug 1996 18:14:17 -0500From: Nirmala Kaldindi To: IT-LIST@sparky.uthscsa.eduSubject: regd imagetoolMessage-ID: <199608222314.SAA15292@isip02.isip.msstate.edu>Should imagetool work under Solaris 2.4?We are running sun/s R5 X found in /usr/openwin.Here is the error message we get:isip00_[2]:imagetool -verbose img0106.pcdld.so.1: imagetool: fatal: libxil.so.1: can't open file: errno=2KilledNirmala------------------------------Date: Thu, 22 Aug 1996 19:14:22 -0500From: "Benjamin E. Nelms" To: it-list@sparky.uthscsa.eduSubject: MSVC++ plug ins/1D pixel integrationsMessage-ID: <199608230017.TAA37159@audumla.students.wisc.edu>First of all, I first tried the new ImagePC from NIH Image, and let me tellyou now, ImageTool is the way to go for PC people.  Very nice application.But...I'm new to this list (first day) and have two questions:1) I need horizontal pixel integrations/averaging over a specified ROI.  Ifound the line profile function, so there must be an area function, right?If not, writing a plug-in to do this seems it would be easy enough (callmany line profiles and add), which leads me to my next question...2) Has anyone successfully written plug-ins with MSVC++?  Am I wasting mytime if I start?  If not, is there a "shell" source code in which to insertmy code?Thanks for saving me from ImagePC!************************************Benjamin E. NelmsDept. of Medical PhysicsUniversity of Wisconsin-Madisonbenelms@students.wisc.edu************************************------------------------------Date: Fri, 23 Aug 1996 09:41:38 -0400From: "Dr. Bin Yu" To: it-list@sparky.uthscsa.eduSubject: Re: MSVC++ plug ins/1D pixel integrationsMessage-ID: <321DB512.6098@cps.msu.edu>> 2) Has anyone successfully written plug-ins with MSVC++?  Am I wasting my> time if I start?  If not, is there a "shell" source code in which to insert> my code?> > Thanks for saving me from ImagePC!> > ************************************> Benjamin E. Nelms> Dept. of Medical Physics> University of Wisconsin-Madison> benelms@students.wisc.edu> ************************************This almost is my concern. I know the ImageTool was written by BolandC++ and the its library has some difference from MSVC's. I have no muchknowledge on both libraries. Shoud I spend much time to get insuccessful programming?Various exampes which cover most potential user requirements and providewith somehow frames for users to fill their own perticular code are goodfor beginners without much knowledge about MFC and SDK and even C++.Thanks,Bin------------------------------Date: Fri, 23 Aug 1996 14:59:51 -0700From: "Don Wilcox" To: Subject: Re: MSVC++ plug ins/1D pixel integrationsMessage-ID: <199608232218.PAA28303@dogbert.xroads.com>----------> From: Benjamin E. Nelms > To: wilcox@xroads.com> Subject: MSVC++ plug ins/1D pixel integrations> Date: Thursday, August 22, 1996 6:15 AM> > First of all, I first tried the new ImagePC from NIH Image, and let metell> you now, ImageTool is the way to go for PC people.  Very niceapplication.Thank you for your kind words.> > But...I'm new to this list (first day) and have two questions:> > 1) I need horizontal pixel integrations/averaging over a specified ROI. I> found the line profile function, so there must be an area function,right?> If not, writing a plug-in to do this seems it would be easy enough (call> many line profiles and add), which leads me to my next question...There is a rectangle tool, but it will not do what you want.  However, thenew ImageTool, to be released tomorrow (barring a sudden showstopper) willhave a wide line profile feature that will do the averaging for you.  Thefeature will be implemented as a configuration option on the existing lineprofile tool.> > 2) Has anyone successfully written plug-ins with MSVC++?  Am I wasting my> time if I start?  If not, is there a "shell" source code in which toinsert> my code?We are currently working on this.  This should be easy to do, but thereappears to be a problem getting VC++ to export the appropriate name.  RobertSmith (ras@curtech.com) is working on this right now, and if we do not getthe problem figured out before tomorrow morning, I will post the necessarychanges to this list once I figureout how it is done.  Unfortunately, I donot have access to a copy of VC++, so I cannot do this on my own.> > Thanks for saving me from ImagePC!My pleasure.Don------------------------------Date: Fri, 23 Aug 1996 15:01:30 -0700From: "Don Wilcox" To: Subject: Re: regd imagetoolMessage-ID: <199608232218.PAA28306@dogbert.xroads.com>----------> From: Nirmala Kaldindi > To: wilcox@xroads.com> Subject: regd imagetool> Date: Thursday, August 22, 1996 5:12 AM> > > > Should imagetool work under Solaris 2.4?I am sorry to say that I do not know the answer to your question.  ImageTool1.23 and 1.25 only require emulation of the 386 instruction set, so ifSolaris provides this feature, then it should work.  Beyond that, I knowvery little about this area, but would be interested in finding out more sothat we can make the information available to our ImageTool user community.Thanks,Don------------------------------Date: Fri, 23 Aug 1996 19:29:50 -0400From: "Dr. Bin Yu" To: ras@curtech.comCc: it-list@sparky.uthscsa.eduSubject: Plug-in Image Tools with MSVC++Message-ID: <321E3EEE.5EAA@cps.msu.edu>Hello Robert Smith,The maker of Image Tools, Don, metioned you in his response to theproblem on ImageTools plug-ins with MSVC++. Could you give me some ideaon the possibility for users to use MSVC++ to write their own plug-incode. I know most libraries provided by BC and VC are different. Do wehave to use BC for developing in IT?Your comments are highly appreciated.Thanks,Bin------------------------------Date: Fri, 23 Aug 1996 19:04:55 -0500 (CDT)From: "Paul A. Roales" To: IT-List@sparky.uthscsa.eduSubject: Coefficients of filter kernelsMessage-ID: <199608240004.TAA22119@mail.ionet.net>Where can I find the coefficients of the filter kernels for the filtersprovided with IT? I am trying to learn how to use IT for air photointerpretation as a Geologist. I have been able to copy a filter from a airphoto interpretation book and get it to work with IT, but I would like toknow what the provided filters look like. For example is the filter tosmooth a little:1  1  11  4  11  1  1 ?Thanks,Paul Roales------------------------------Date: Fri, 23 Aug 1996 20:38:51 -0700From: "Don Wilcox" To: "ImageTool List Server" Subject: Using VC++ to write ImageTool plug-ins.Message-ID: <199608240347.UAA04681@dogbert.xroads.com>To all ImageTool developers:In the SDK that is released on Saturday with version 1.25, there is a newsection devoted to writing plug-ins in VC++.  As I have said before, I donot have a copy of VC++ to test this with, but the information comes fromWindows Developers Journal, which I have found to be extremely reliable. Anyways, if you are writing a plug-in in VC++, you will want to look at thisinformation.  I hope to work with one of you over the course of the nextweek to produce a working plug-in example.Don------------------------------Date: Fri, 23 Aug 1996 20:39:39 -0700From: "Don Wilcox" To: Subject: Re: Coefficients of filter kernelsMessage-ID: <199608240347.UAA04684@dogbert.xroads.com>----------> From: Paul A. Roales > To: wilcox@xroads.com> Subject: Coefficients of filter kernels> Date: Friday, August 23, 1996 6:05 AM> > Where can I find the coefficients of the filter kernels for the filters> provided with IT? I am trying to learn how to use IT for air photo> interpretation as a Geologist. I have been able to copy a filter from aair> photo interpretation book and get it to work with IT, but I would like to> know what the provided filters look like. For example is the filter to> smooth a little:> 1  1  1> 1  4  1> 1  1  1 ?> The filter files are simply text files, so you can look at them to see whatthe coefficients are.  Likewise, you can create your own using a testeditor.Don------------------------------Date: Sun, 25 Aug 1996 14:28:46 -0500 (CDT)From: "Paul A. Roales" To: IT-LIST@sparky.uthscsa.eduSubject: Mistake on Shadow west filter?Message-ID: <199608251928.OAA21004@mail.ionet.net>Thanks for the earlier help on reading filter coefficients.I think I have found an error in the coefficients of the Shadow West filterwhich comes with IT. My copy (provided on IT) reads: 1  0  -1 2  1  -1 1  0  -1 .An image processing article I have says the filter should be: 1  0  -1 2  1  -2 1  0  -1 .Comparing the provided Shadow West filter to the provided Shadow Northfilter also makes me believe that the provided Shadow West filter is inerror, as does the lack of symmetry of the provided Shadow West filter.Is the provided Shadow West filter in error?Paul Roales------------------------------End of IT-LIST Digest 38