click to View Animation       click to see owl instead

The PC3D PROGRAM 

PC3D is a DOS application. It will not run  under Windows.

The PC3D program allows you to digitize tracings of rat brain sections, perform primitive (EGA resolution) 3D reconstructions and calculate volume measurements. When sectioning, it is important that the sections be evenly spaced (take every section, or every 2nd, or every 6th ...). You should also be careful when collecting sections on microscope slides that you know which hemisphere is which. Once the sections are stained and coverslipped follow the following steps:

  1. Microprojector Tracing
  2. Input Tracefiles
  3. Describe Tracefiles
  4. Edit Tracefiles
  5. Create 3-D Images
  6. Volume Determination
  7. Plot Image

Tracing Sections with the Microprojector


Input Tracefiles

  1. Select 1. Input Tracefiles from the PC3D menu
  2. Place your first drawing under the acetate on the digitizing tablet. Align the tracing so that it is centered under the vertical line on the acetate.
  3. Enter "g" on the keyboard.
  4. Using the "puck", enter the the Reference Point, Lower Left Point, and Upper Right Point when prompted by placing the crosshairs of the puck over the appropriate marking on the acetate and depressing the "0" button on the puck. A rectangle should appear on the monitor.
  5. Trace the 1st structure. You will hear a beep when the structure is closed. Before the structure is closed, you can erase it by pressing the "E" button on the puck.
  6. When the computer beeps, you are prompted to enter a label for the structure on the alpha-numeric keypad of the puck. Each structure will be labelled with a different character 0->F. You must label all structures consistantly within and across drawings. (After the computer beeps, a keyboard entry will erase your most recent tracing.)
  7. Continue until all structures have been traced and labelled.
  8. When all structures have been traced and labelled, press the "D" button on the puck. You will be prompted to enter a filename on the keyboard.
  9. All tracings of a set must have a common filename with the exception of the filename extension. The file name cannot exceed 8 characters. The filename extension specifies the location of the section Use the number assigned to the tracing. If any of these numbers exceeds 3 digits, strip the last digit for the filename extension. e.g. if the tracings are numbered 0,480,960,& 1440, the file names might be brain.0, brain.48, brain.96, and brain.144.
  10. Return to step 2 until all tracings are digitized, then press "Q" to return to the PC3D menu.

Describe Tracefiles

  1. Select 2.Describe Tracefiles from the PC3D menu.
  2. You will be prompted to enter a Tracefile generic. This means the filename without the extension.
  3. First Tracefile is the extension with the lowest number.
  4. Last Tracefile is the extension with the highest number.
  5. Tracefile increment is the arithmetic difference between successive extensions.
  6. Type "n" to the query about creating a new tracefile set.
  7. Enter the picture magnification detemined during the traceing step.
  8. Enter the true distance between tracings in microns.
  9. Come up with a name for your reconstruction. This name can be different than the filename.
  10. For each character that appears on the screen, type the name of the structure assigned to that character. If no structure is assigned to the character, hit the enter key.

EditTracefiles

The amount of editing that you can do is extremely limited. The Edit program is used only to assign mislabelled structures the correct alphanumeric label.

  1. Tracefile generic is the filename without extension.
  2. Increment is the difference between consecutive extensions.
  3. File forma: Enter "b" for binary.
  4. Image number: Image number(extension) to edit.
  5. Use the up, down, left, and right arrow keys to toggle your way through the different structures on your tracing.
  6. Correct any errors by prssing the correct number on the keyboard when the mislabelled structure is highlighted.
  7. Save corrections by using the "F5" key.
  8. Use the "F3" & "F4" keys to move from drawing to drawing.
  9. When done, the "F10" key woll return you to the PC3D menu.

Create 3-D Images

The Create 3-D Images program is used to manipulate your set of tracings in space. It can also be used to emphasize and de-emphasize individual structures for hightlighting.

  1. Select 4. Create 3-D Images from the PC3D Menu. You will use the "i" & "r" commands from the create menu.
  2. Start with the "i" command. You will be prompted for a generic which is the trace filename without the extension. A screen something like the one at the right will appear. The image at right shows the screen for a series of 41 CAT Scan images: abd.0, abd.10, abd,20, ..., abd.400.
  3. Begin by assigning a COLor and an INCrement to each structure. When the cursor is in the color column a list of colours will appear at the bottom of the screen. Choose transparent (-ve) colors to start. (Note If you will be producing hard copy of the 3D reconstruction on a printer rather than a plotter,you will be printing a negative of the image which appears on the monitor. Bear this in mind when selecting colors. Assign Increments equal to the LEVELS AVAILABLE INCR to begin with.
  4. Leave the Manual Scaling set to "N"
  5. Don't bother entering a screen save file name or plot save file name.
  6. Enter a transform. There are two types of commands that can be used:


  7. Command Action Syntax Example
    s scale s(#axis) s(4z)
    r rotate r(#axis) r(120y)


  8. When entering multiple transform commands they must be separated by commas. e.g. s(5z),r(25x),r(30y) Commands will be executed sequentially from L-->R.
  9. Press the "F10" key to generate an image. If you have not specified a screen save file, the image will remain on the monitor until you press the Enter Key. If you did enter a screen file name, the image will appear momentarily and disappear. To view the image, press "ESC" key then type "r filename".
  10. While your image is displayed on the monitor, hitting the PrintScrn Key will save the image to the clipboard from which it can be pasted into another program.

Highlighting Tips


Volume Determination


The volume of each polygon type is calculated by measuring the cross sectional area of the polygons of that type by the section thickness and summing across all sections.

Volume is only calculated for objects composed entirely of closed polygons. Volume accuracy depends on the accuracy of the picture magnification and the section thickness which you provide.

  1. Select 6. Volume Detemination from the PC3D Menu.
  2. Enter the tracefile generic.
  3. Accept the default value for the 1st tracefile in the sequence.
  4. Accept the default value for the last tracefile in the sequence.
  5. Accept the default value for the tracefile increment.
  6. The tracings will be processed and a summary table of the volumes of each polygon type will appear on the screen.

Plot Image

The PC3D program can generate a hard copy of your image but only via an HP Plotter. To plot an image using the plotter follow these steps:

  1. Exit to DOS and type the following command at the prompt: mode com2:9600,n.8,1,p and press the Enter key. (This assumes that the plotter is connected to com2. If the plotter is connected to com1, substitute com1 for com2 in the command line.
  2. Type PC3D to get back to the PC3D menu.
  3. Select 7. Plot to HP Plotter from the PC3D menu.
  4. Feed a sheeet of paper into the plotter
  5. Type "w", a space, and then com1 or com2 to specify the output port.
  6. Type "v", a space, and then a number from 1 to 40 to set plotting speed. 40 is fastest.
  7. Type "p", a space, and then the plotfile name (myimage.plt).
  8. Enter 25 for the desired width in cm.
  9. Respond (y/n) to the pen assignment query.
  10. Press ENTER key to start plotting.

It is becoming extremely difficult to find replacement colour pens for the plotter. It is more likely that a colour printer will be used to generate hard copy. PC3D cannot send output to a printer. You must follow these steps to generate a file for a printer:

  1. When you create a 3-D image that you like, save it to the clipboard by pressing the PrintScrn key.
  2. Open your preferred image editing program (Paint, Paint Shop Pro, Photoshop, ...) and paste the image from the clipboard into your image editor.
  3. Perform a negative transform on the image changing the background from lack to white. (All the other colours will be changed as well).
  4. Print the image.
A similar strategy was used to generate the animated GIF (click to view at the top of this page). A series of images were generated. Each one was rotated an additional 20 ° on the y axis. Each image was saved and later the files were assembled into an animated GIF using Microsoft GIF Animator. Other programs such as Photoshop Elements can perform similar construction of an animated GIF.

Steve Milway
Last modified: Monday, June 13th, 2005