Article View: comp.soft-sys.khoros
Article #1015Re: Trouble displaying color images
From: Donna Koechner
Date: Mon, 04 Jan 1993 17:46
Date: Mon, 04 Jan 1993 17:46
35 lines
1968 bytes
1968 bytes
On Nov 23, 5:07pm, Jeff Hehn wrote: } Subject: Trouble displaying color images } Hello group, } I am relatively new to khoros and have been writing some code to } get color images from our framegrabber (on a PC) into the viff format, and for the } most part I have been successful. I am able to save viff images in greyscale } and RGB format and display them using khoros on a Sparc II. When } I try to use an IHS (Intensity, Hue, Saturation) model however, it seems to just } display it as a greyscale image. I extracted the three bands and the data seems to } represent the HSI model. Has anyone else had experience with trying to display } images in an IHS model. A vfileinfo of an image I saved in the hsi model reveals: } ______________________________________________________ Hi Jeff, The display routines only display (pseudo-colored) images with a colorspace model of genericRGB, ntscRGB, or "NONE". If the image's color space model is anything else, you will see each band displayed independently, as you described above. Therefore you need to convert the data before displaying. There are a couple conversion routines that convert from the perceptual color spaces hls, hsv, to RGB (vcrgbhsv, vcrgbhls). (They are under CONVERSIONS/Color Transform in cantata.) } ___________________________________________________________ } } I would certianly appreciate any comments or ideas to help me display } images using a IHS model. } Thanks, } - -JLH } Inside editimage, you can manipulate the data using other color space models, but the initial image still needs to be RGB. Donna
Technical Details
Message-ID:
<42392@pprg.eece.unm.edu.pprg.unm.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!lynx!pprg.unm.edu!daemonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!lynx!pprg.unm.edu!daemon From: donna@peabody.eece.unm.edu (Donna Koechner) Newsgroups: comp.soft-sys.khoros Subject: Re: Trouble displaying color images Message-ID: <42392@pprg.eece.unm.edu.pprg.unm.edu> Date: 4 Jan 93 17:46:02 GMT Sender: daemon@pprg.unm.edu Lines: 36