Reading txt files with Digital Image Processing Package
- To: mathgroup at smc.vnet.net
- Subject: [mg85048] Reading txt files with Digital Image Processing Package
- From: GidiL <gidienator at gmail.com>
- Date: Fri, 25 Jan 2008 05:05:39 -0500 (EST)
Dear All! I would greatly appreciate any help you could give me with the following. I have an image from an experiment I carried out. The image itself is not in a format with which Mathematica can work. So I have two options to save it either as an (x,y,z) ASCII file or a matrix ASCII file. I am not sure which is the best one to use to read into Mathematica, so I tried both. Needless to say, these are both Lists. Since these are not by default images (such as bitmap, jpeg or tiff), Digital Image Processing does not recognise them as images. Hence I cannot import them using the ImageRead command, nor are they recognized as Image Data. I resorted to simple Import and ListDensityPlot commands in order to import the data into Mathematica and visualize it. Now I want to work with these images. I want to be able to use LineProfile and LineSelectGUI to choose the lines I want. Is this possible? Simply put, how can I make DIP recognize these files as Image Data? Thanks, Gideon