The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/D17/

maskme.pro


function maskme,maskproc,win,datp=datp LAMP function to mask the unwanted points from a workspace ARW 05.08.04 NECESSARY VARIABLES maskproc=a string with the mask procedure and relevant parameters The available mask procedures are: box: needs a 2- or 4-element array to define the box circle: needs a 3-element array with centreX, centreY, radius ellipse:needs a 4-element array with Xlocus, Ylocus, centreX, centreY none: no mask (for calling within functions) win=input workspace OPTIONAL VARIABLES datp = the data structure for the workspace If unspecified, the program will take the data structure from the workspace e.g. type at lamp interface: w2=maskme('box,[190,200,63,222]',w1) CALLS TO: appropriate mask procedure, d17_errmsg last modified: ARW 17.12.10

Routines

box, limits, win, wout

circle, limits, win, wout

ellipse, limits, win, wout

result = maskme(maskproc, win, datp=datp)

Routine details

top box

box, limits, win, wout

LAMP procedure to mask all the pixels from a workspace except those within the box bounded by the specified limits All pixels outside the mask will have a value of -1 ARW 05.08.04 NECESSARY VARIABLES: limits=a two- or four-element array with the pixel limits for the mask if limits is a two element array, the limits are [xmin,xmax] if it's a 4 element array, the limits are [xmin,xmax,ymin,ymax] win=the input workspace OUTPUT VARIABLES: wout=the output workspace e.g. box,[190,200,63,222],win,wout CALLS TO: last modified: ARW 13.08.04

Parameters

limits
win
wout

top circle

circle, limits, win, wout

LAMP procedure to mask all the pixels from a workspace except those within the circle defined by the specified limits All pixels outside the mask will have a value of -1 ARW 05.08.04 NECESSARY VARIABLES: limits=a four element array with the radius (in pixels) and centre (x and y) pixels for the ellipse The equation is (x-xc)^2+(y-yc)^2 < radius^2 win=the input workspace OUTPUT VARIABLES: wout=the output workspace e.g. circle,[100,50,110],win,wout CALLS TO: last modified: 13.08.04 ARW

Parameters

limits
win
wout

top ellipse

ellipse, limits, win, wout

LAMP procedure to mask all the pixels from a workspace except those within the ellipse defined by the specified limits All pixels outside the mask will have a value of -1 ARW 05.08.04 NECESSARY VARIABLES: limits=a four element array with the x- and y-locii (in pixels) and centre (x and y) pixels for the ellipse The equation is ((x-xc)/xlocus)^2+((y-yc)/ylocus)^2 < 1 win=the input workspace OUTPUT VARIABLES: wout=the output workspace e.g. ellipse,[120,40,135,135],win,wout HINT: The aspect ratio of y- to x- pixels is ~3! CALLS TO: last modified: 13.08.04 ARW

Parameters

limits
win
wout

top maskme

result = maskme(maskproc, win, datp=datp)

******* ****** ** User callable

Parameters

maskproc
win

Keywords

datp

File attributes

Modification date: Tue Oct 1 14:43:02 2013
Lines: 243