Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug image processing projects on eclipse?

Here at work we have plenty of experience developing image processing applications for the TI DSP platform using an old version of code composer (CC 3.3). We are transitioning to the ARM platform using Eclipse (flavored and distributed by Xilinx).

In the old code composer, a feature we used a lot was to look was an IDE widget that could display a certain area of memory as a bitmap image. It had a properties grid where you would define things like size, pixel format and stride orientation to properly interpret the blob of memory as a picture. The tool also had some nice features like zooming, a grayscale counter, line profile, histogram and etc.

Is there something similar for eclipse? If not, how difficult would it be to create one? I mean, how difficult it is to create a barebones plugin for eclipse that draws information from a location of memory in a jtag interface?

like image 864
Padu Merloti Avatar asked Mar 19 '14 00:03

Padu Merloti


1 Answers

Gdb can call python script. If gdb is used for debugging then please use this. You can use OpenCV or PIL or any image library to show the image.

Updated on 2 Apr 2014:

Let 'data' be the pointer to the image. Inside gdb run "python data = gdb.parse_and_eval("data")". This will give access to inferior's memory pointed by data. e.g., "python print(data[35])" will show the 35th element of 'data'.

As the image data can be read in python, it can be displayed or analysed.

Following links will help in getting things done:

  1. http://www.cinsk.org/wiki/Debugging_with_GDB:_How_to_create_GDB_Commands_in_Python
  2. https://sourceware.org/gdb/onlinedocs/gdb/Python.html#Python

Note: Please ignore the comment I added. Hit enter key before writing the actual info.

Hope this helps.

like image 98
prasannatsm Avatar answered Oct 03 '22 07:10

prasannatsm