MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Beginner : how to convert .bmp or .jpeg for digital processing

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57144] Re: Beginner : how to convert .bmp or .jpeg for digital processing
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 19 May 2005 03:08:11 -0400 (EDT)
  • References: <d6bi9d$moh$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Peter,

t= Import[FileName,"JPEG"]

reads your picture.
t[[1]]
gives you a Raster object --> see manual
t[[1,1]]
gives you the array of gray values or color values used for the color 
function if your pictur contains colors.
Sincerely, Daniel

Peter van Daalen wrote:
> I want a simple way of processing grayscale and .bmp and .jpeg bytes ( 
> for improving my digitized X-ray pics ).
> No advanced processing as per application " Digital Image Processing " 
> is needed for me.
> 
> Being a Mathematica beginner, I failed in finding the way to convert 
> ..jpeg and .bmp formats into 2D and 3D numerical ( 0-255) arrays.
> 
> Thanks for any help.
> 


  • Prev by Date: Re: How to get an answer as a Root object?
  • Next by Date: four dimensioal polynomial composition
  • Previous by thread: Re: Re: Beginner : how to convert .bmp or .jpeg for digital processing
  • Next by thread: Re: Beginner : how to convert .bmp or .jpeg for digital processing