COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### formation of the image from matrix of doubles

• Email
• Follow

```Lets say i have a matrix G, that matrix contains different double values. How exactly image function creates image out of it?

lets say my colormap is colormap(jet(256)), now what formulas are used by image function in order to derive R,G,B components for each element of my double matrix?
```
 0

See related articles to this posting

```
"Ernest Milenko" <badshnaps@gmail.com> wrote in message
news:iarvj0\$2cu\$1@fred.mathworks.com...
> Lets say i have a matrix G, that matrix contains different double values.
> How exactly image function creates image out of it?
> lets say my colormap is colormap(jet(256)), now what formulas are used by
> image function in order to derive R,G,B components for each element of my
> double matrix?

Read the description of the CData property for image objects for a
description of how MATLAB uses your image data (potentially in conjunction
with the figure colormap) to determine what colors to display.

http://www.mathworks.com/help/techdoc/ref/image_props.html#CData

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
http://www.mathworks.com

```
 0

1 Replies
201 Views

Similar Articles

12/11/2013 4:10:35 PM
[PageSpeed]

Similar Artilces:

7 zip image format (or an image format with mixed file-image compression)
I've posted this message previously on the 7-zip source forge forum, but I think it's also correct to share it with you. -- I really don't undestand why what i'm going to say doesn=B4t exist. when Talking about image compression, we can divide in 2 groups, with or without loss. I've tried the PNG format (lossless), and it seems to work good. but something is missing. For example, take a simple bmp (http://web.archive.org/web/19980502040406/google.stanford.edu/googlehardwa= re.html i've picked the last photo, 900kb). Now Covert it to PNG, there is a considerable compress...

matrix formation
hi, without the use of permutation. here i want to make a M matrix which contains 'n' numbers. in this example number exits are(1,2,3,4,5). M=1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 2 2 1 2 3 1 2 4 1 2 5 1 3 3 1 3 4 1 4 4 2 2 2 2 2 3 2 2 4 2 3 3 2 3 4 3 3 3 help me pl...

double to image?
After you convert an image to double precision, is there a way to convert it back to a typical image format and still show it using imshow? i tried multiplying by 255, but imshow (and assuming other techniques) fails from working On 10-11-16 03:05 PM, Aron Sceidt wrote: > After you convert an image to double precision, is there a way to > convert it back to a typical image format and still show it using > imshow? i tried multiplying by 255, but imshow (and assuming other > techniques) fails from working uint8() after multiplying by 255. "Aron Sceidt" <sigarr...

diference between image and matrix
hi im reading an image and then displaying it using imshow. however im confused that the positions where detail is on the image do not compare to the positions in the matrix. So if i have a binary image and check in matrix position 5,5 i found a 1 indicating white pixel but its black in the image display. why is this? In what position are you finding it in on the displayed image? Regards, ImageAnalyst westclox wrote: > hi im reading an image and then displaying it using imshow. however > im confused that the positions where detail is on the image do not > compare to the positions in...

png images to other format?
Hi I have a monochrome .png image where it appears as all black when I use imshow. Is it the problem of matlab in reading png? If so, is there any to convert it in matlab to format like jpg? I got all zeros when I imread the image. Below is the link to the image that I have uploaded http://photobucket.com/matlab_png Thanks Mei Mei It is able to read in PNG files. Are you sure all the values are all zero - have you looked at them in the variable editor? Maybe they're just dark. Try this imshow(imageArray, []); ImageAnalyst <imageanalyst@mailinator.com> wrote in message <0...

I have an .xri image file from Phillips Medical Systems. The format consists of a header (128 bytes), containing information about the pixel format in the file, and then the pixel data itself. There is no gap between the header and pixel data. I am trying to read the file byte by byte using fread but don't know how to convert pixel data bit into an image. For example, the pixels are 2 byte signed integer values. Please help! ...

save CMYK image into JPEG format
Hi guys, I've a problem with CMYK e JPEG file format: I'm using python for develop a program which generate an image file from a PIL RGB image. the problem is when i must save my image CMYK into a JPEG file. well, the result is that my new image is only black! but if I save my file in a .tif file, I'll see it well. I don't know why! I'm desperate! Please help me!! thx In article <1133815797.411189.47900@g14g2000cwa.googlegroups.com>, mariano.difelice@gmail.com wrote: > the problem is when i must save my image CMYK into a JPEG file. > well, the result is...

Convert a pdf to an image format with imagemagick
Hi to all!!! I'm trying to convert a pdf file into an image, for example JPG or PNG format, with ImageMagick. I use the command line. For example: convert header.pdf header.jpg. But I obtain a bad result. The jpg's quality is very low. Why? I tried to use - quality 100 option but there isn't improvement. I think also that this option isn't active for the pdf conversion to an image format or not? I need some good ideas :D... Thanks to all fem <femtox77@gmail.com> wrote in message news:1185204380.330805.101900@r34g2000hsd.googlegroups.com... > Hi to all!!! > >...

howto: add double border to layer (not image)
How can i add a double border to a layer? I've a script that adds a single border to a layer and some scripts that adds double (or triple) borders around the image. But i want a script / plugin to add a double border around a layer. Can someone help me with this? tnx. lennart wrote: > How can i add a double border to a layer? > > I've a script that adds a single border to a layer and some scripts > that adds double (or triple) borders around the image. But i want a > script / plugin to add a double border around a layer. Can someone > help me with this? > >...

6 images in tile format(google maps)
I want to know if there is a quicker way to add a Image into a frame and tile it with others eg perl.tk can add an image and i can set frames one by one, but the code for the program is getting WAY!!!! to big (150 x 150 eg 5 km square - i need 9 km square), And with my code added to it, the program is all over the place and i have over 1000 lines of code, i cant keep trace of...... Also on a foot note, can Serial be added to perl? can i read/write to serial in perl and display its data in a label/text in perl.tk ?????? Quoth Dwayne Triffitt <dwayne.triffitt@gmail.com>: > I want ...

what is native texture image format on graphics card?
Is there any routine in the openGL API that will return the native texture image format on a graphics card? (By "texture image format", I mean one of GL_RGB, GL_RGBA, GL_COLOR_INDEX, etc.) I have an nvidia GeForce FX 5200. My objective is to invoke glTexSubImage2D and like methods with the internalformat argument set to the native format. Thanks. clrnsc@yahoo.com wrote: > I have an nvidia GeForce FX 5200. My objective > is to invoke glTexSubImage2D and like methods > with the internalformat argument set to the native > format. There is not "the one" for...

2x2 "matrix" for 3 images
Hello, I would greatly appreciate if someone could tell me how to define a block of 3 images, all identical in size, so that the layout looks like a 2x2 matrix:, where the [2,2] item gathers the caption texts: [[a)] ] [ [b)] ] [ Image 1 ] [ Image 2 ] [ ] [ ] [ [c)] ] a)Caption 1 [ Image 3 ] b)Caption 2 [ ] c)Caption 3 That is: # the first 2 images occupy a full \textwidth long row # a box with the item a, b, or c is overlayed in the top left corner of each image # the captions of the 3 images are gathered in the bottom right (should they be long, that is oc...

Text editor with equation formatting or image support
I am trying to find a text viewer that will support somehow equations, even better if images as well. I tried HP Doc (it was in spanish), Navigator (I expected this one to support images for some reason). I wouldn't have a problem using the text editor that comes with the 49g+, when I save a txt file on it with an equation inside of it, when I try to open it in word, or notepad, it isn't in a format where I could really edit it and put it back and have it appear with the equations... My goal is to be able to edit the equations in the text file on my computer, either through notepad ...

convert structured matrix to double arrays? hmm?
Situation: I have a structured matrix <1x43>struct called "CW2005bank" which contains 43 sets of batch fermentation data. This structured matrix contains 43 structured matrices of the form <1x1>struct (i.e. 43 times.. <1x1><1x1><1x1>...etc.) Each of these <1x1> structured matrices contains 4 columns of data (of different row length, Y) which refer to a specific batch fermentation. Each of these are called "ferm" (i.e. field: ferm is a <Yx4> matrix. i.e. >>CW2005bank .......returns the following........... CW2005bank = 1x43...

New: Image Processing Toolbox for O-Matrix
Harmonic Software has released "IPT - The Image Processing Toolbox for O-Matrix". IPT provides a comprehensive set of functions for image manipulation and analysis. The IPT capabilities include image file I/O, color space transformations, linear filtering, image transformations, mathematical morphology, image enhancement, and image analysis. IPT is multi-threaded, uses SIMD technology, and is built with leading- edge image processing algorithms to provide execution performance and efficiency that far exceeds other toolbox and stand-alone image processing solutions. View the IPT ben...

Khoros Visualization image ( .xv format) not recognized in MATLAB!!
The Khoros Visualization image files are not recognized in MATLAB version 7.6 (R2008a). << I use Windows XP >> When i use the command imread('example.xv'); it says " unidentified file format"... Anyone know to solve this problem?? or does Matlab doesn't support .xv formats?? On Apr 7, 3:03=A0am, vivek_Wohlt=E4ter_:) <youshallfin...@gmail.com> wrote: > The Khoros Visualization image files are not recognized in MATLAB > version 7.6 (R2008a). =A0<< I use Windows XP >> > When i use the command > imread('example.xv'); ...

Help reading a Fixed Format Card Image file
I have a bunch of data that looks like this that I'm trying to figure out how to read in values from it: 555555010527 555555020501 55555503 555555044454 55555505 555555060100 55555507 55555508 55555509 55555510 55555511 55555512 555555130000 555555140100 555555150100 555555160000 555555170000 555555181110 55555519 Columns 1-6 are an ID Columns 7-8 are a card # I then have a map file which tells me which card #/column positions represent which variables. For example, VarA has a card # of 2 and a column position of 10 so the value is 5. I've been reading up on the INFILE statement f...

[News] Microsoft to Introduce Proprietary Image Format (WMP)
Microsoft shows off JPEG rival ,----[ Quote ] | If it is up to Microsoft, the omnipresent JPEG image format will | be replaced by Windows Media Photo `---- http://news.zdnet.com/2100-3513_22-6076650.html The fight against standards. Last time it was Media Player when they deviated. And they still have poor PNG support... Can you imagine E-mails with WMP attachments, or WMP on the Web? *sigh* If you ask me, the compression claims are an excuse and a case of bending the truth. See: http://ckunte.com/archives/2005/11/07/divx-vs-wmv/ Prepare for DRM's photos. On Thu, 25...

From Matlab, how do I copy some cells(including formatting) and save as image file?
From Matlab, how do I copy some cells(including formatting) and save as image file? I want to do that via COM or ActiveX server. I know how to open and close the Excel sheet. But what's the command in COM/ACTIVEX to copy a few cells (rectangular shape, including formatting), and save as image? You mean like you want to do a screen capture of the Excel window, just like you'd do with alt-PrintScreen in Windows? But then you'd have to find where in that image of the Excel window your cells of interest were - might not be easy. On Sep 24, 4:49=A0pm, ImageAnalyst &l...

Choosing a matrix library for image processing. Blitz++,MTL or others?
I'll swictch from Matlab to C++. So I want to find a matrix library of C++, Whitch can process images conveniently as Matlab does. I've googled, and found that Blitz++ and MTL are popular and powerful. I want to know whitch of them fit for image processing better. Or have other choices? Any suggestion whill be appreciated. Guch wrote: > I'll swictch from Matlab to C++. So I want to find a matrix library of > C++, Whitch can process images conveniently as Matlab does. > > I've googled, and found that Blitz++ and MTL are popular and powerful. > I want to kn...