Changeset 133 for trunk/SRC/Picture/imdisp.pro
- Timestamp:
- 07/07/06 11:57:27 (18 years ago)
- Location:
- trunk/SRC/Picture
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Picture/imdisp.pro
r132 r133 1 1 ;------------------------------------------------------------------------------- 2 ;+ 3 ; @hidden 4 ;- 2 5 FUNCTION IMDISP_GETPOS, ASPECT, POSITION=POSITION, MARGIN=MARGIN 3 6 ; … … 47 50 END 48 51 ;------------------------------------------------------------------------------- 52 ;+ 53 ; @hidden 54 ;- 49 55 FUNCTION IMDISP_IMSCALE, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 50 56 NEGATIVE=NEGATIVE … … 78 84 END 79 85 ;------------------------------------------------------------------------------- 86 ;+ 87 ; @hidden 88 ;- 80 89 FUNCTION IMDISP_IMREGRID, DATA, NX, NY, INTERP=INTERP 81 90 ; … … 119 128 END 120 129 ;------------------------------------------------------------------------------- 130 ;+ 131 ; @hidden 132 ;- 121 133 PRO IMDISP_IMSIZE, IMAGE, X0, Y0, XSIZE, YSIZE, ASPECT=ASPECT, $ 122 134 POSITION=POSITION, MARGIN=MARGIN … … 176 188 177 189 END 178 ;------------------------------------------------------------------------------- 179 PRO IMDISP, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 180 MARGIN=MARGIN, INTERP=INTERP, DITHER=DITHER, ASPECT=ASPECT, $ 181 POSITION=POSITION, OUT_POS=OUT_POS, NOSCALE=NOSCALE, NORESIZE=NORESIZE, $ 182 ORDER=ORDER, USEPOS=USEPOS, CHANNEL=CHANNEL, $ 183 BACKGROUND=BACKGROUND, ERASE=ERASE, $ 184 AXIS=AXIS, NEGATIVE=NEGATIVE, _EXTRA=EXTRA_KEYWORDS 185 ; 186 compile_opt idl2, strictarrsubs 187 ; 188 190 ;******************************************************************************* 189 191 ;+ 190 ; NAME: 191 ; IMDISP 192 ; 193 ; PURPOSE: 192 ; 193 ; @file_comments 194 194 ; Display an image on the current graphics device. 195 195 ; IMDISP is an advanced replacement for TV and TVSCL. … … 214 214 ; - Photographic negative images can be displayed via the NEGATIVE keyword. 215 215 ; 216 ; CATEGORY: 217 ; Image display 218 ; 219 ; CALLING SEQUENCE: 220 ; IMDISP, IMAGE 221 ; 222 ; INPUTS: 223 ; IMAGE Array containing image data. 216 ; @categories Image display 217 ; 218 ; @param IMAGE {in}{required} Array containing image data. 224 219 ; Pseudo (indexed) color images must have 2 dimensions. 225 220 ; True color images must have 3 dimensions, in either 226 221 ; [3, NX, NY], [NX, 3, NY], or [NX, NY, 3] form. 227 222 ; 228 ; OPTIONAL INPUTS: 229 ; None. 230 ; 231 ; KEYWORD PARAMETERS: 232 ; RANGE For Pseudo Color images only, a vector with two elements 223 ; @keyword RANGE For Pseudo Color images only, a vector with two elements 233 224 ; specifying the minimum and maximum values of the image 234 225 ; array to be considered when the image is byte-scaled … … 237 228 ; or if the NOSCALE keyword is set. 238 229 ; 239 ; BOTTOMBottom value in the color table to be used230 ; @keyword BOTTOM Bottom value in the color table to be used 240 231 ; for the byte-scaled image 241 232 ; (default is 0). 242 233 ; This keyword is ignored if the NOSCALE keyword is set. 243 234 ; 244 ; NCOLORSNumber of colors in the color table to be used235 ; @keyword NCOLORS Number of colors in the color table to be used 245 236 ; for the byte-scaled image 246 237 ; (default is !D.TABLE_SIZE - BOTTOM). 247 238 ; This keyword is ignored if the NOSCALE keyword is set. 248 239 ; 249 ; MARGINA scalar value specifying the margin to be maintained240 ; @keyword MARGIN A scalar value specifying the margin to be maintained 250 241 ; around the image in normal coordinates 251 242 ; (default is 0.1, or 0.025 if !P.MULTI is set to display 252 243 ; multiple images). 253 244 ; 254 ; INTERPIf set, the resized image will be interpolated using245 ; @keyword INTERP If set, the resized image will be interpolated using 255 246 ; bilinear interpolation 256 247 ; (default is nearest neighbor sampling). 257 248 ; 258 ; DITHERIf set, true color images will be dithered when displayed249 ; @keyword DITHER If set, true color images will be dithered when displayed 259 250 ; on an 8-bit graphics device 260 251 ; (default is no dithering). 261 252 ; 262 ; ASPECTA scalar value specifying the aspect ratio (height/width)253 ; @keyword ASPECT A scalar value specifying the aspect ratio (height/width) 263 254 ; for the displayed image 264 255 ; (default is to maintain native aspect ratio). 265 256 ; 266 ; POSITIONOn input, a 4-element vector specifying the position257 ; @keyword POSITION On input, a 4-element vector specifying the position 267 258 ; of the displayed image in the form [X0,Y0,X1,Y1] in 268 259 ; in normal coordinates … … 271 262 ; offset and size are known (e.g. MAP_IMAGE output). 272 263 ; 273 ; OUT_POSOn output, a 4-element vector specifying the position264 ; @keyword OUT_POS On output, a 4-element vector specifying the position 274 265 ; actually used to display the image. 275 266 ; 276 ; NOSCALEIf set, the image will not be byte-scaled267 ; @keyword NOSCALE If set, the image will not be byte-scaled 277 268 ; (default is to byte-scale the image). 278 269 ; 279 ; NORESIZEIf set, the image will not be resized.270 ; @keyword NORESIZE If set, the image will not be resized. 280 271 ; (default is to resize the image to fit the display). 281 272 ; 282 ; ORDERIf set, the image is displayed from the top down273 ; @keyword ORDER If set, the image is displayed from the top down 283 274 ; (default is to display the image from the bottom up). 284 275 ; Note that the system variable !ORDER is always ignored. 285 276 ; 286 ; USEPOSIf set, the image will be sized to exactly fit a supplied277 ; @keyword USEPOS If set, the image will be sized to exactly fit a supplied 287 278 ; POSITION vector, over-riding ASPECT and MARGIN 288 279 ; (default is to honor ASPECT and MARGIN when a POSITION 289 280 ; vector is supplied). 290 281 ; 291 ; CHANNELDisplay channel (Red, Green, or Blue) to be written.282 ; @keyword CHANNEL Display channel (Red, Green, or Blue) to be written. 292 283 ; 0 => All channels (the default) 293 284 ; 1 => Red channel … … 299 290 ; images can be displayed on any device supported by IMDISP. 300 291 ; 301 ; BACKGROUNDIf set to a positive integer, the background will be filled292 ; @keyword BACKGROUND If set to a positive integer, the background will be filled 302 293 ; with the color defined by BACKGROUND. 303 294 ; 304 ; ERASEIf set, the screen contents will be erased. Note that if295 ; @keyword ERASE If set, the screen contents will be erased. Note that if 305 296 ; !P.MULTI is set to display multiple images, the screen is 306 297 ; always erased when the first image is displayed. 307 298 ; 308 ; AXISIf set, plot axes will be drawn on the image. The default299 ; @keyword AXIS If set, plot axes will be drawn on the image. The default 309 300 ; x and y axis ranges are determined by the size of the image. 310 301 ; When the AXIS keyword is set, IMDISP accepts any keywords 311 302 ; supported by PLOT (e.g. TITLE, COLOR, CHARSIZE etc.). 312 303 ; 313 ; NEGATIVEIf set, a photographic negative of the image is displayed.304 ; @keyword NEGATIVE If set, a photographic negative of the image is displayed. 314 305 ; The values of BOTTOM and NCOLORS are honored. This keyword 315 306 ; allows True color images scanned from color negatives to be … … 318 309 ; is ignored if the NOSCALE keyword is set. 319 310 ; 320 ; OUTPUTS: 321 ; None. 322 ; 323 ; OPTIONAL OUTPUTS: 324 ; None 325 ; 326 ; COMMON BLOCKS: 327 ; None 328 ; 329 ; SIDE EFFECTS: 330 ; The image is displayed on the current graphics device. 331 ; 332 ; RESTRICTIONS: 333 ; Requires IDL 5.0 or higher (square bracket array syntax). 334 ; 335 ; EXAMPLE: 311 ; @restrictions The image is displayed on the current graphics device. 312 ; 313 ; @restrictions Requires IDL 5.0 or higher (square bracket array syntax). 314 ; 315 ; @examples 336 316 ; 337 317 ;;- Load test data … … 472 452 ;map_grid 473 453 ; 474 ; MODIFICATION HISTORY: 475 ; Liam.Gumley@ssec.wisc.edu 454 ; @history Liam.Gumley@ssec.wisc.edu 476 455 ; http://cimss.ssec.wisc.edu/~gumley 477 ; $Id: imdisp.pro,v 1.47 2002/06/05 16:31:07 gumley Exp $478 456 ; 479 457 ; Copyright (C) 1999, 2000 Liam E. Gumley … … 492 470 ; along with this program; if not, write to the Free Software 493 471 ; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 472 ; 473 ; @version $Id: imdisp.pro,v 1.47 2002/06/05 16:31:07 gumley Exp $ 474 ; 494 475 ;- 476 ;------------------------------------------------------------------------------- 477 PRO IMDISP, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 478 MARGIN=MARGIN, INTERP=INTERP, DITHER=DITHER, ASPECT=ASPECT, $ 479 POSITION=POSITION, OUT_POS=OUT_POS, NOSCALE=NOSCALE, NORESIZE=NORESIZE, $ 480 ORDER=ORDER, USEPOS=USEPOS, CHANNEL=CHANNEL, $ 481 BACKGROUND=BACKGROUND, ERASE=ERASE, $ 482 AXIS=AXIS, NEGATIVE=NEGATIVE, _EXTRA=EXTRA_KEYWORDS 483 ; 484 compile_opt idl2, strictarrsubs 485 ; 495 486 496 487 rcs_id = '$Id: imdisp.pro,v 1.47 2002/06/05 16:31:07 gumley Exp $'
Note: See TracChangeset
for help on using the changeset viewer.