MICAM version 1.2 MICAM version 1.2

Introduction

Getting started

The Menu
Toolpanel


Measurements and Calibration

Miscellaneous

Example

Registration


Introduction
I started many years ago with micro photography when I was a schoolboy. My experiments were done in the darkroom, by removing the ocular and projecting the image of the objective right on the photo paper.
Of course the paper had to be developed immediately. I managed to make some photographs, but the microscope was more a toy and the darkroom equipment was very primitive. I got other interests and I forgot about microscopy and photography.

After many years I started with microscopy again. Times have changed, so I wanted to use a digital camera and a computer for photography.
I attached a webcam to my microscope. I removed the ocular of the microscope and the lens of the webcam (a ToUCam).
The lens was replaced by an adapter and an UV + IR blocking filter was placed in front of the adapter. This way no dust can enter the webcam. Fortunately in my set-up the CCD came almost right in the focus of the objective.
In my opinion you get the best quality with this kind of set-up. Using the webcam with lens in front of an ocular produced pictures with red spots, because of reflections on the IR filter on the webcam lens. The only disadvantage is the small area of the CCD, so this method is only appropriate for small objects.
There is a lot of capturing software available, but all had some drawbacks (technically, but also the price).
What I wanted is a program in which I only have to press a button to save the captured frame with a name that gives me some information about the picture (its a webcam, not a digital camera with EXIF and all kind of information stored in the picture). Furthermore I wanted to do some measuring on the picture so I could tell what dimensions the objects have without doing the same calculations over and over again. At that moment I started programming my Microscope Image Capture And Measuring (MICAM) program. The result was a program that was very easy to use, so I think other users of microscopes with a webcam (or a digital eyepiece) attached can benefit of this program.
Index

Getting started with MICAM

When you run MICAM for the first time, the program doesn't know what kind of camera or webcam you are using and what kind of microscope you have. So before you run the program make sure the webcam is attached to the computer and does function with other software. Then start the program.
The program starts with the main window.
In the menu bar you now select the item 'Device' then choose 'Select Device'. In the Capture Driver Dialogue you see adrop down box you can select your webcam (forget about the Select a Microscope item for this moment) and click OK.
Then a window with a possibility to select the size of the life view will appear. Selct the size you want to use and click OK.
On the Preview Window Tab you should see the live picture of the webcam.

Now go to the Preferences menu item. Here you can select a lot of options. For this moment we ignore all possibilities and go to the tab 'Microscope'.
We haven't any microscope yet, so we click on 'Add Microscope' , enter a name and click OK. In the next window you have to enter a name for an objective. Choose 4 (if you have an objective with 4x magnification). Then we go to 'Add Objective' to add values for the other objectives: 10, 40, 100 e.g..
Then go back to the tab 'Image and Video' and select the directories where you want to save the images (frames) and movies (AVI's) . You can use the ellipsis buttons ... for that. You can also choose the kind of file type you want to use for your images:
BMP is without losses, but gives you large files.
PNG uses some compression and is also loss less.
JPG normally isn't loss less and uses compression, so you will get the smaller images . I have chosen a jpg-format with minimal loss.

Furthermore you can choose between three kind of filenames. Select what suites you best.

When the Frame directory name contains a #-sign, the directory name will be used in the comment that is saved with every image you take:
The directory name is split into two parts. The part before the #-sign will be the "Location" comment, the part behind the # will become the second line (Coordinates).
So when you create a directory with name: "Netherlands #km 230-557" Every image will be saved with Location as 'Netherlands' and Coordinates as 'km 230-557'.

Click OK to confirm the changes you have made. When you close the program your settings will be saved and used again when you start a new session of the program. So the previous mentioned setting have to be done only once
The only thing you have to change then is the directory were you want to store your images

N.B.
I found out that many camera's (especially the cheaper ones) have somewhat buggy driver interfaces. For this reason you have to select a video device and video format manual at the start of the program. In this way all tested camera's did function perfectly with MICAM.

Now you can start capturing images by just pressing the 'Snapshot' button.
Note that the information that is stored inside a file is displayed in the lower left corner for a few seconds.
When you use PNG or JPG as image format the information will be stored inside the image. When you use BMP the information will be stored in a separate file with the same name, but with the extension 'cmt'.
This is all you need to know for capturing images with MICAM. More things are possible as you can read in the next sections of this help file.

Index

The Menu














Index

The Tool panel
The appearance of the tool panel changes when you switch from Preview Window to Measurement Window.

The Preview Window
When you are in the Preview Window you have the following options:








The white box (at the bottom left) you see flashing when you make a snapshot is the Comment box. It shows the comment that is saved with the image.

The Measuring Window
The following descriptions refer to what you see when you select the Measurement Window





Index
Measurements and Calibration

To perform measurements you have to calibrate MICAM first.
Calibration
When you are calibrating it is useful to have an object under the microscope with some kind of calibrated scale on it (a ruler for the 4 X and 10 X objectives f.i.) When you go from one line to another on the ruler you know that the distance will be 1 mm = 1000 um. For the objectives with higher magnification you need some kind of object with a known length of about 50 to 200 um. I assume you have an object with known dimensions under the microscope. When you have a clear view, press the 'To Measurement' button. Go to the 'Calibration and Measurement' window and check the 'Calibrate' box. In the image you go to the start of the known distance. Press the left mouse button and move to the other end of the known distance. Release the left mouse button.
A small window pops up were you can enter this known distance. This finishes the calibration for this particular objective. You will have to repeat this action for the other objectives to get an accurate calibration, but I found out that measurements on the other objectives will be rather good without that.
After a calibration of an objective the caption (text at the radio button) will be BLACK. The program makes a guess about the calibration factor for the other objectives (I assume that when you calibrated the 10X objective, the 40X objective produces an image almost 4 times as large). Those names will be in GREEN. Here the program also warns you.
When you loaded an image from file it is possible the picture was not made with MICAM and the microscope information could be wrong. The program warns you by displaying the caption of the objectives box in red.
Measuring
To perform a measurement you go with the mouse to the place where you want to start. Press the left mouse button and with the mouse button pressed go to the stop point.
A line will be drawn and the length (in um) will appear at the end of the line. This distance will also be displayed in the 'Calibration and Measurement' box.

Index

Miscellaneous

When you right-click a BMP, JPG or PNG file in Window Explorer, you can select "Send To" . The installer has put a link in the 'Send To' directory and now Windows allows you to select a program you want to use to open this kind of file. When you choose MICAM your image file will be opened with MICAM
When MICAM is open, you can also drag images from the windows explorer (or Picasa) to the measurement window of MICAM and drop it there

To demonstrate the use of Databases in MICAM I have added four databases:
Diatoms, Desmids, Paddestoelen (i.e. mushrooms in Dutch) and Mossen (Mosses). The latter two databases not only contain the scientific names, but also the Dutch names (in MICAM refered to as 'Local names'). You can use MICAM for other subjects by creating your own databasese. I hope the information you can get from the supplied ones will be sufficient for that purpose
Note: When you place your own databases in the Databases directory of MICAM, MICAM will recognize them and let you use them.

You can use Function keys to start the most used functions in MICAM. The following functions are implemented:


An example of the use of MICAM
Here I will give an example of how I use MICAM:
I study desmids in the northern part of the Netherlands. I collect water samples and try to determine what kind of desmid I see under the microscope. I often make a photo inventarisation, so others can verify the determination in a later stage. For this example I take a water sample from my garden pond at location (square kilometre area) km 236 - 559. A few days later I start the investigation of the sample under the microscope.

I start the MICAM program and select the webcam (eyepiece) I am using. In this stage I can change settings for contrast and brightness, but I already made these settings earlier and the program uses the earlier settings. The camera I use is the default one so all settings for the microscope and camera are ready now (Go to Preferences --> Microscope to set the right microscope and camera settings if you haven't done that yet).

Now I go to Preferences and go to the directory where I save my photographs of desmids. I create a new directory with the name "Garden Pond #km236 - 559". Note that because of the #-sign the Location and Coordinates strings at the bottom are set in the proper way! In the box Default Filename I select the sample date (pull-down button) and select as default filename only the sample date and unique number (option number two). Finally I select JPG in the 'Save Image As' box. Then I click OK. All preparations have been made now. Normally it will take 10 to 20 seconds to make all preparations.

Then I start searching the sample for interesting things, The real work!
When I find something I don't recognize but nevertheless is interesting I press the snapshot button. Without any questions a picture will be made
I use a trinocular microscope and I have to pull a shaft to change from the direct view to the binocular view of course. Maybe a small adjustment in focus has to be made, but that is all. On the computer screen I can focus very well. I sometimes set focus on different points in the object under study and make several photographs of the same object just by pushing the Snapshot button. My main problem is that when I switch objectives, the program isn't aware of that. So I have to select the right objective in MICAM also. For this reason I have an option to issue a warning when you have selected another objective than the most used one (see Preferences --> Microscope). It doesn't prevent me from making errors, but at least I can prevent some of them.

When I see something I recognize, I use the 'Save with Options' button. Now I can select the right database (Desmids) and type a few characters of the name (in the box at the upper right I see all names that contain the selected characters. So when I see a 'Tetmemorus brebissonii var. brebissonii' I only have to type 'tet' in the Search field and only a few matching names are left. I then select the right one in the list with matching names and a proper filename will be shown in the Suggested Name box. Note that all other settings are taken from the preferences you made earlier, but if you want to change them you can do that. Clicking the 'Save with this name' button saves the photograph with the suggested name.

In a later stage I can go to the Measurement tab and reopen files. An object I couldn't determine the first time can be given a name now by using the 'Save with options' button in the same way as when I was capturing images.
The same operation can be performed with the 'Search and Rename' menu option. Renaming several files will be easier using that option.

I hope you enjoy working with MICAM as much as I do.

Registration of this software

Registration of this software is not necessary. If you like this program then pay an amount of 10 euro via PayPal (to mvanwesten@home.nl) to continue the use this software.

Index