Inside NIH Image
General Information
About this Document
Macro Examples, Techniques & Operations
What is a macro and why write one?
Before you begin
For the programming beginner
Macro global vs. local vars
Putmessage, ShowMessage & Write
Number of digits
Switching and choosing windows
How to input a number or string
Looping
Regions of Interest (ROI)
Detecting press of option, shift and control keys
Measurement and rUser Arrays
Placing macro data in the "Results" window
Operating on each image in a stack (SelectSlice)
Saving results data to a tab delimeted file
Accessing bytes of an image
Batch Processing
Avoiding a macro dialog box
TickCount
Placing time and date into your data
PlotData notes
Calling user written pascal from a macro
Pascal Examples, Techniques & Operations
Users can use User.p
Recommended addition when adding to pascal
Returning a value from pascal to a macro
Pascal versions of SelectSlice & SelectPic
Putmessage, showmessage & PutmessageWithCancel
How to input a number
Reading from disk
Memory and pointer allocation
Operating on an Image
Getting at the bytes of an image
Working with two images
4D datasets
Creating a dialog box
Key & mouse
Image and text