Tags: apppreciate, commands, greetings, ifsomeone, image, images, matlab, mri, plot, ploting, programming, raw, scanner

ploting raw data to image

On Programmer » Matlab

2,826 words with 3 Comments; publish: Wed, 30 Apr 2008 23:32:00 GMT; (20046.88, « »)

Greetings,

I have extracted raw data ( from MRI scanner ) . Would apppreciate if

someone shows me how to plot images without using commands such (

i.e. imshow ) .

thanks

Athaur Rahman

All Comments

Leave a comment...

  • 3 Comments
    • > I have extracted raw data ( from MRI scanner ) . Would apppreciate

      > if

      > someone shows me how to plot images without using commands such (

      > i.e. imshow ) .

      Well "imshow" is part of the Image Processing Toolbox. The analogous,

      lower-level function in the general toolbox is "image" (or

      "imagesc").

      For roughly the same output as "imshow", you can do:

      rawdata = randn(100); % for example

      imagesc(rawdata);

      axis equal;

      axis tight;

      axis off;

      colormap gray;

      Is that what you're looking for?

      Franois

      #1; Wed, 30 Apr 2008 23:33:00 GMT
    • thanks for ths info, i have to do more homework before ensure abt

      converting the my data image

      And i am just wondering how the image is been plot from the matrix .

      The matrix is some random floting numbers , and how are this

      inteprated in forming the image .

      what the numbers are indicating

      thanks

      Franois Bouffard wrote:

      >

      > apppreciate

      (

      > Well "imshow" is part of the Image Processing Toolbox. The

      > analogous,

      > lower-level function in the general toolbox is "image" (or

      > "imagesc").

      > For roughly the same output as "imshow", you can do:

      > rawdata = randn(100); % for example

      > imagesc(rawdata);

      > axis equal;

      > axis tight;

      > axis off;

      > colormap gray;

      > Is that what you're looking for?

      > Franois

      #2; Wed, 30 Apr 2008 23:34:00 GMT
    • > thanks for ths info, i have to do more homework before ensure abt

      > converting the my data image

      > And i am just wondering how the image is been plot from the matrix

      > .

      > The matrix is some random floting numbers , and how are this

      > inteprated in forming the image .

      > what the numbers are indicating

      Well in the example above, I was just illustrating how to plot a set

      of image-like data without using imshow().

      An image is simply a 2-D array, or if it's a color image, an MxNx3

      array. In the case above, randn(100) simply produces a 100x100 array

      containing random gaussian-distributed values. "imagesc" furthermore

      normalizes the output: the maximum value is shown as white (with the

      gray colormap) and the minimum value as black.

      So, any MxNx1 or MxNx3 data array can be represented as an image

      using "image" or "imagesc".

      However, if your data is in a specific (e.g. compressed) format, you

      must first import the image file and transform it into an array using

      "imread" or another custom function.

      Franois

      #3; Wed, 30 Apr 2008 23:35:00 GMT