Dear members..i am an electrical engg.. And doing an image processing project. The problem is that i want to view a Y pixels file (.Y file) as an image. So, that a print of it can be taken..Is there any command in matlab that can take a file ( having pixel values in it), and produce an output image.??.. If an RGB scheme is used in some command, the Y pixel's value is assigned to each R, G and B for that particular pixel...( The .Y file just contains the Y pixel values as bytes)... regards, Khubaib. |
|
viewing a file as an image..??...
Started by ●December 11, 2002
Reply by ●December 11, 20022002-12-11
Dear Khubaib, Try using "image" function. I'm not sure whether it will solve your purpose but I hope so. Wishes, Sachin Bakre PhD Student, IIT Bombay, India. --- "Khubaib <>" <> wrote: > Dear members..i am an electrical engg.. And doing an > image processing > project. The problem is that > i want to view a Y pixels file (.Y file) as an > image. So, that a > print of it can be taken..Is there any command > in matlab that can take a file ( having pixel values > in it), and > produce an output image.??.. If an RGB scheme > is used in some command, the Y pixel's value is > assigned to each R, G > and B for that particular pixel...( The .Y file just > contains the Y > pixel values as bytes)... > regards, > Khubaib. > > _____________________________________ > Note: If you do a simple "reply" with your email > client, only the author of this message will receive > your answer. You need to do a "reply all" if you > want your answer to be distributed to the entire > group. > > _____________________________________ > About this discussion group: > > To Join: > > To Post: > > To Leave: > > Archives: http://www.yahoogroups.com/group/matlab > > More DSP-Related Groups: > http://www.dsprelated.com/groups.php3 > > ">http://docs.yahoo.com/info/terms/ __________________________________________________ |
Reply by ●December 14, 20022002-12-14
Hi, You can use 'imread()' to first get your image. Type help imread to see the types supported. To plot it, imshow(). Hope it helps. "Khubaib <>" <> wrote:Dear members..i am an electrical engg.. And doing an image processing project. The problem is that i want to view a Y pixels file (.Y file) as an image. So, that a print of it can be taken..Is there any command in matlab that can take a file ( having pixel values in it), and produce an output image.??.. If an RGB scheme is used in some command, the Y pixel's value is assigned to each R, G and B for that particular pixel...( The .Y file just contains the Y pixel values as bytes)... regards, Khubaib. _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/matlab More DSP-Related Groups: http://www.dsprelated.com/groups.php3 ">http://docs.yahoo.com/info/terms/ ------------------------- Aurio Gonlez Tenio M. Sc. Student Department of Communications - Decom Faculty of Electrical and Computer Engineering - FEEC University State of Campinas - UNICAMP, SP - Brazil --------------------------------- Busca Yahoo! O melhor lugar para encontrar tudo o que vocprocura na Internet |
|
Reply by ●December 15, 20022002-12-15
well i dont think imread would work as it reads image files of the types supported by MATLAB. what u can do MAYBE is that first read the file in an array using the conventional I/O functions like fread() (see help in this regard) and then do imshow(array). remember the function imshow also supports particular type of data like double or uint8 etc etc. i think this will solve ur problem good luck |