🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.khoros
Article #905

Re: Masking procedure

#905
From: Mathew Yeates
Date: Thu, 31 Dec 1992 00:09
42 lines
2176 bytes
Jeff Key <jeff@stratus.colorado.edu> writes:

>Khoros users - 

>I have recently obtained Khoros and it looks great.  However, there is one
>type of operation that I am particularly interested in (right now), and it
>must exist in Khoros, but I cannot find any reference to it in the
>Khoros manuals (Volumes 1 and 2 so far).  So, I thought I might get a 
>quick response from one of you.

>I simply want to load an image and use the mouse to define irregularly-shaped
>regions of interest; e.g., clouds, snow cover, etc.  I would then like to
>save this mask as a separate file/image, where all pixels within the
>region(s) of interest are assigned one value and all pixels outside receive
>a different value.  Additionally, I would like to see simple statistics for the
>masked areas; e.g., the mean and standard deviation.

>I would appreciate any help that I can get on this.  I'm sure I would 
>eventually figure it out myself.  On the other hand, it seems as though
>an operation like this should be well explained in the manual, which it
>isn't. 

>Thanks.

>Jeff Key

Heres the only way I can think of.
1) From within editimage annotate the image with, say, filled 
polygons. 
2) Save the image to disk (Dont forget to combine annotations first)
3) Map the image through the colormap and take one of the bands with 
   vbandspt1, i.e. vmapdata -i yourfile -o -|vbandspt1 -i - -o tmpfile
4) threshold the resulting file using vthresh.

This will not work if the original image has high intensity values that
match those produced by the annotation

You can stats on the selected image using vstats. It allows you to
specify a masking image.


Mathew Yeates
Technical Details
Message-ID: <mathew.725760564@henry>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!henry!mathew
References: <42359@pprg.eece.unm.edu.pprg.unm.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.soft-sys.khoros
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!henry!mathew
From: mathew@elroy.Jpl.Nasa.Gov (Mathew Yeates)
Subject: Re: Masking procedure
Message-ID: <mathew.725760564@henry>
Sender: news@elroy.jpl.nasa.gov (Usenet)
Nntp-Posting-Host: henry.jpl.nasa.gov
Organization: Image Analysis Systems Group, JPL
References: <42359@pprg.eece.unm.edu.pprg.unm.edu>
Date: Thu, 31 Dec 1992 00:09:24 GMT
Lines: 42