Re: BitMap form
- To: mathgroup at smc.vnet.net
- Subject: [mg4104] Re: BitMap form
- From: Harald Berndt <haraldb at nature.berkeley.edu>
- Date: Tue, 4 Jun 1996 02:19:03 -0400
- Organization: University of California Forest Products Lab
- Sender: owner-wri-mathgroup at wolfram.com
Dale E. Newbury wrote: > > I wish to model a structure using a BitMap form, with Mathematica. > This is different than the normal vector space that Mathematica functions > in. I searched for help in Mathematica Textbooks and Journals and I have > even tried my luck at Mathemtica Programming, but to no success. I was > wondering if you had any advice to send my way or if you knew how to solve > this BitMap problem. > To elaborate on the kind of BitMap that I am looking to create, I > would like to create both 2dimensional and 3dimensional bitmaps,with > different surfaces and/or solids represented by different numbers. Thanks > for your help. > > Sincerely, > John Kessler > > (301)9752552 > s315928 at gettysburg.edu > > Note that this message is being sent from my place of summer employment. > Messages can be sent back to this e-mail address at NIST: > dale.newbury at nist.gov This question appeared twice in my current browse of the newsgroup, so I thought I'll give it a whirl: I'm not sure I understand what "modeling a structure in bitmap form" means, but I propose the definition "sampled on a finite grid." So, an n-dimensional bitmap is simply an n-dimensional array. To build them, sample the function in question (e.g. using the Table[] function). To display 2D bitmaps, use ListDensityPlot (very vesatile function, that!). For 3D bitmaps (the datapoints would be voxels, in the jargon), one needs to improvise. In Mathematica itself, Tom Wickham-Jones' ListDensityPlot3D (I think) works under some circumstances. I have written (well, hacked. It's rough but it works) a function for writing 3D data arrays to files that Spyglass Dicer can read. Then I use Dicer for image creation and manipulation. I hope this helps. If I missed the point regarding your particular problem, e-mail me. -- _______________________________________________________________ Harald Berndt University of California Research Specialist Forest Products Laboratory Phone: 510-215-4224 FAX:510-215-4299 _______________________________________________________________ ==== [MESSAGE SEPARATOR] ====