Pixel Data

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Pixel Data

Sandeep Rattu -RMSINDIA
Hi

Please tell me how to get 24 bit/16 bit image pixel data from image.

Please help.

I used a method for getting pixel data of 16 bit image tbut its not working fine.
BinaryReader br = new BinaryReader(File.Open(fileName, FileMode.Open));

ushort pixShort;

int i;

long iTotalSize = br.BaseStream.Length;

for (i = 0; i < iTotalSize; i += 2)

{

pixShort = (ushort)(br.ReadInt16());

pixels16.Add(pixShort);

}

br.Close();

width = (int)(Math.Sqrt(pixels16.Count));

height = width;



this code is in C#.

But i am getting help from ImageJ.

Please tell me. Because when i used this pixel16 data, image is not showing me correct pixels.



Thanks & Regards,

Sandeep
Recorders and Medicare Systems Pvt. Ltd
181/5, Phase - 1, Ind. Area
CHANDIGARH - 160 002 INDIA
+91-9872030116
other e-mail: [hidden email]  

URL: http://www.rmsindia.com | http://www.rmssecurity.org | http://www.rmssecurity.net