MathGroup Archive 2005

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

Search the Archive

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


Hi,

Import[] the image, the image has the pattern
Graphics[Raster[rasterData_,___],___]

and you need the "rasterData"
and

Import["somepicture,tif"][[1,1]]

or
Import["someotherpicture.bmp"] /. 
Graphics[Raster[bm_,___]___]:> bm

will do that.

Regards
  Jens

"Peter van Daalen" <vandaalen at chello.nl> schrieb 
im Newsbeitrag news:d6bi9d$moh$1 at smc.vnet.net...
>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: four dimensioal polynomial composition
  • Next by Date: NonLinearRegress and constraint parameters
  • Previous by thread: 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