CD11102B_PI44_Echo_sounder_display_w400p.gif
Is that possible?
CD11102B_PI44_Echo_sounder_display_w400p.gif
Is that possible?
Which type of data/samples do you have and how are they related to this image.
Uwe
I'm currently developing a echo sounder, echogram. I just want to know how to display depth of the sea every seconds using this chart. I found it Spectrogram is the similar like echogram. But when i saw the example and do some modification, I can only make round object not like as displayed in the picture (this picture is an example of echo sounder) I attached. I'm just curious, do the Spectrogram can display like the picture I attached or I should try it with normal plot??
QwtPlotSpectrogram maps raster data ( a matrix of values ) into a QImage.
Again: which type of data/samples do you have and how are they related to this image.
Uwe
Can a matrix make a plot like in the picture? I don't want to use picture, just normal plot with different color like in the picture
Type of data for depth of water is double, and for the time is normal integer...
The rest is like the example in Qwt for Spectrogram parts
the x axis is time, the y axis is depth
the color is what the echo received by sensor to describe sea bottom or fish
the darker the color the better the echo received (brown/red->good while blue is bad one)
I haven't make any matrix yet because I don't find any example and good explanation about matrix documentation
F.e. an image is a matrix ( 2 dimensional array ) of values ( colors ), where each value represents one pixel. The coordinates ( x1-x2, y1-y2) for each pixel can be calculated from the bounding rectangle of the image an the number of rows and columns. Of course there might be pixels, where you don't have any value, that are mapped to a transparent color.
In opposite to raster data ( matrix ) you might have an unsorted array of 3D points ( x, y, color ). If this is your situation you have to define how these samples have to be mapped to which area on the plot.
My guess is, that you want to derive from QwtRasterData and use a QwtPlotSpectrogram. In YourRasterData::value() you have to return the quality of your echo for a specific time and depth. You will have to do some sort of resampling here - maybe some sort of next neighbour. For coordinates, where you don't have any close quality value you will return something invalid, that is mapped to Qt::white or Qt::transparent from your color map.
Uwe
Qt Code:
To copy to clipboard, switch view to plain text mode
Uwe
micamica (8th September 2011)
Bookmarks