|
Re: Data array format for Intensity Graph [message #1265482 is a reply to message #1263729] |
Thu, 06 March 2014 06:35 |
Xihui Chen Messages: 8 Registered: December 2013 |
Junior Member |
|
|
IntensityGraph displays 2D array data to a 2D image with each point maps a color from the color map, but the input data must be in 1D array format, in which the values are arranged in row by row so it can be converted to a 2D array. For example, for a N rows by M columns 2D data, the input data should like this:
InputData = P11, P12,...P1M, P21, P22, ... P2M, ... PN1, PN2, ...PNM
For example, for an image of 3X3:
1,2,3
4,5,6
7,8,9
The input array should be [1,2,3,4,5,6,7,8,9] by calling setDataArray(). Another important thing is that you need to call setDataWidth(3) and setDataHeight(3) to tell it the array height and width.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03950 seconds