When the ' ROI Auto Process ' option is enabled,
the selected script file will be started when the user releases the left
mouse button. The script program may read the user selected
ROI coordinates and parameters from the ' \fpimage\temp\proc.q
' file. This file is organized in the following manner:
| Name | Description |
| Parent | This the handle of the calling FP Viewer application window. |
| Script Name | The filename of the selected script. |
| Image File | The current displayed image file. |
| Operation | The current cursor tool selected:
0 = none (entire image selected)
|
| Start X | The image X coordinate at the instant the mouse button is depressed. |
| Start Y | The image Y coordinate at the instant the mouse button is depressed. |
| End X | The image X coordinate at the instant the mouse button is released. |
| End Y | The image Y coordinate at the instant the mouse button is released. |
| Image Width | The current displayed image width in pixels. |
| Image Height | The current displayed image height in pixels. |
| Pixel Offset | Starting file location of pixel data in bytes. |
| Pixel Data Type | Pixel data (1 = float, 2 = integer, 3 = byte ). |
| Pixel Correction | The pixel correction factor to add to pixel data. |
| Pixel Size | The pixel size in MM. |
| Thickness | The slice thickness in MM. |
| Gantry Tilt | The gantry tilt in degrees. |
| KV | The scanned KV setting. (obsolete) |
| MA | The scanned MA setting. (obsolete) |
| Window Width | The current Window width. |
| Window Level | The current Window level. |
| Zoom Factor | The current zoom factor. |
| Total Frames | The total number of frames currently loaded into the buffer. |
| Frame Number | The current frame number. |
Example: See the BasicROI.imp file