Results 1 to 5 of 5
Thread: SAR Image Processing
- 03-04-2013, 10:03 AM #1
Member
- Join Date
- Mar 2013
- Posts
- 3
- Rep Power
- 0
SAR Image Processing
Hi everyone,
my name is Davide and I am a new member. I apologize in advance for my English that It's not very good.
I have to do an exercise where I have to draw a SAR(Synthetic Aperture Radar) Image. The problem is that the input image is composed by a binary raster plus an XML parameters file. The XML file contains all the information to correctly read the image.
I downloaded Java Advancing Imaging Library but I've never worked with this image format and I don't know where to start.
Can anyone help me?
Thank you very much.
- 03-04-2013, 12:31 PM #2
Re: SAR Image Processing
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 03-08-2013, 11:13 AM #3
Member
- Join Date
- Mar 2013
- Posts
- 3
- Rep Power
- 0
Re: SAR Image Processing
Hi everyone again,
I followed your advice and I studied the theory on raster data so I have made some step forward. Now I have a new problem that I will try to explain you in the better way. I was able to obtain from the binary raster data an array of float.
From the XML parameters file I know that the rows number are 1000, the columns number are 2000, the pixel type is complex float and that the real and imaginary parts are put side-by-side on a column basis. I created two array, one of the real parts and one of the imaginary parts:
Then I create an array with the absolute value of complex number:Java Code:for (int i=0;i < SIZE_X*SIZE_Y; i++){ if(i%2 == 0){ real[k] = bin_input[i]; if(Math.abs(real[k]) > max_value_re){ max_value_re = Math.abs(real[k]); } k++; }else{ img[n] = bin_input[i]; if(Math.abs(img[n]) > max_value_im){ max_value_im = Math.abs(img[n]); } n++; } }
Now I have an array of float with values from 0 and 1. I tried to create a gray scale image because in the XML file it says that the number of channels is 1:Java Code:for (int i=0;i < SIZE_X/2*SIZE_Y; i++){ mag[i] = (float) (Math.sqrt(Math.pow(real[i]/max_value_re,2) + Math.pow(img[i]/max_value_im,2))); }
The problem is that the image is all black as if the method is not able to interpret the float values and puts everything at zero.Java Code:BufferedImage theImage = new BufferedImage(SIZE_X/2, SIZE_Y, BufferedImage.TYPE_4BYTE_ABGR); WritableRaster wr = (WritableRaster) theImage.getData(); wr.setPixels(0, 0, SIZE_X/2, SIZE_Y, mag); File outputfile = new File("C:\\Sviluppo\\workspace\\Java\\SAR\\Milano.png"); try { ImageIO.write(theImage, "png", outputfile); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }
First of all, do you think the process can be right or is there some logical/theorical error? If it's ok, How can I fix the problem?
Thank you.
- 03-08-2013, 01:57 PM #4
Senior Member
- Join Date
- Jan 2013
- Location
- United States
- Posts
- 895
- Rep Power
- 1
Re: SAR Image Processing
Have you tried other Image types? You are using an Alpha capable image type which describes transparency. You may also want to try TYPE_INT_ARGB (which also includes an alpha setting in the high order 8 bits.
Regards,
JimThe Java Tutorial
YAT -- Yet Another Typo
- 03-08-2013, 02:19 PM #5
Member
- Join Date
- Mar 2013
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
image processing
By rohankapoor in forum New To JavaReplies: 4Last Post: 03-01-2011, 06:35 AM -
Image processing
By ranadav in forum Advanced JavaReplies: 3Last Post: 06-05-2010, 03:22 PM -
Image processing
By syarizma in forum Advanced JavaReplies: 6Last Post: 08-17-2009, 05:15 AM -
Image Processing
By Josh_FL in forum Advanced JavaReplies: 4Last Post: 12-30-2008, 02:45 AM -
image processing
By sathish natrajan in forum Java 2DReplies: 2Last Post: 11-06-2008, 05:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks