Click here to Skip to main content
15,910,980 members
Please Sign up or sign in to vote.
1.44/5 (3 votes)
I wanna convert RADAR data to colored image using c#.
I have RADAR data and I want to show in to color image. Which method should I use.
Posted
Updated 1-Jan-14 23:04pm
v2
Comments
Sergey Alexandrovich Kryukov 2-Jan-14 1:44am    
What exactly do you mean by radar data? what format, etc.?
—SA
kodmail 2-Jan-14 2:59am    
16 bit radar data. This data scale 0 - 65536 values and type UInt16.
kodmail 2-Jan-14 3:24am    
i_tmp = (int)(floating_radar_data * 16777216 / 256); //values are very small

byte_data1D[i * 3 + 2] = (byte)((i_tmp & 0xFF0000) >> 16);
byte_data1D[i * 3 + 1] = (byte)((i_tmp & 0xFF00) >> 8);
byte_data1D[i * 3 + 0] = (byte)((i_tmp & 0xFF) >> 0);

Bitmap bmp = new Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
Sergey Alexandrovich Kryukov 2-Jan-14 10:10am    
This is not enough. What do they numbers represent, how are they represented? And what do you want to do with this data?
—SA
bhvhaivan 17-Feb-14 23:24pm    
Hi kodmail !
I have a problem like you about displaying radar/arpa data overlays , so can you send me your radar data
Thanks, wait for your reply

1 solution

C#
i_tmp = (int)(floating_radar_data * 16777216 / 256); //values are very small

byte_data1D[i * 3 + 2] = (byte)((i_tmp & 0xFF0000) >> 16);
byte_data1D[i * 3 + 1] = (byte)((i_tmp & 0xFF00) >> 8);
byte_data1D[i * 3 + 0] = (byte)((i_tmp & 0xFF) >> 0);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900