next up previous contents
Next: 4.2 Regions, points, arrows Up: 4. Reference Previous: 4. Reference   Contents


4.1 Image view window

Figure 4.1 shows nip2's image view window with all the toolbars turned on.

Figure 4.1: The image view window
\includegraphics[height=2.5in]{figs/ir1.PS}

If you press i with the keyboard focus on the image you will zoom in on the pixel your mouse pointer is over. Press o to zoom out again, or press the number keys 1, 2, 4 and 8 to jump straight to a particular magnification. If you hold down the Ctrl key while pressing these numbers, nip2 will zoom out by that amount. If you press 0 (the number zero), then nip2 will pick a magnification or reduction which fits the image to the size of the window.

When the image is too large for the window, you can use the scroll bars to move about the image. With the keyboard focus on the image the cursor keys left, right, up and down move a few pixels in each direction; hold down Shift as well to move a screenful at a time; hold down Ctrl as well to jump to the extreme edges of the image.

You can also drag with the middle mouse button to pan around the image. Use the mousewheel to pan up and down, hold down Ctrl to pan left and right. Use Shift and the mousewheel to zoom in and out.

Use the View menu to add extra elements to the window. You can turn the status bar on and off, and you can add a display control bar, a paintbox and a set of rulers to the window. You can control which window elements appear by default with the settings in Preferences.

Figure 4.2: The display control bar
\includegraphics[width=6in]{figs/ir2.PS}

If you select View / Toolbar / Display Control, nip2 will add a bar to the top of the window which you can use to change the contrast and brightness of the image you are viewing. The left-hand slider and text box set the gain for the image: each pixel is multiplied by this amount before display. The right-hand slider and text box set the offset: each pixel has this value added to it before display. This is useful for boosting the brightness in dark areas of images.

Figure 4.3: The display control bar menu
\includegraphics[width=1.5in]{figs/ir3.PS}

If you click the left mouse button on the arrow to the left of the display control bar, nip2 pops up a menu of useful display functions -- see Figure 4.3.

Scale searches the area of the image you are viewing for the darkest and brightest points and chooses settings for the gain and offset sliders which will stretch the image to use the full range of your screen. False colour tries to make small differences in brightness more visible by colour-coding them.

If Interpret is turned on (it is by default), then nip2 will look at the Type field in the image header, and use that as a hint when transforming the image to a viewable form for you. This is usually the behaviour you want. Reset moves the sliders back to the default positions of 1.0 and 0.0. Finally, Hide removes this display control bar.

If you select View / Toolbar / Rulers, nip2 will add rulers to the edges of the window which you can use to measure numbers of pixels. If you left-drag from the ruler, you can create a guide. Guides are useful for lining up other things in the view window.

The File menu contains two useful items: select Replace image to change the image which is being displayed in the window. Select Save image to save the image you are viewing to a file. See §4.3 for details on nip2's load and save dialogs. The New menu is a no-mouse route for creating regions, points, guides and arrows.

If you select View / Toolbar / Paint, nip2 adds a paint bar to the top of the window. You can use the paint bar to do simple edits to the image being displayed. See Figure 4.4.

While the paint bar is very limited, it does have two useful features. First, it can paint with any pixel value, even complex. For example you can take the fourier transform of an image and paint out the peaks. Secondly, it doesn't operate on a memory copy of an image, it operates directly on the file on disc. This means that you can paint on images of any size, but it does make the paint bar a bit dangerous.

Normally paint actions are live, that is, every time you paint something all the objects which depend on the thing you painted will recalculate. This can sometimes cause annoying delays: there's a preferences option to turn off automatic recalculations for the paint bar.

Figure 4.4: The paint bar
\includegraphics[width=6in]{figs/ir4.PS}

The Undo and Redo buttons move forward and back though paint actions. The Clear button wipes the undo/redo history (useful if memory is getting low). There's an option in the preferences workspace which controls the number of undo steps nip2 tracks.


next up previous contents
Next: 4.2 Regions, points, arrows Up: 4. Reference Previous: 4. Reference   Contents
John Cupitt 2004-12-20