08-17-2007 06:59 PM
08-18-2007 11:17 AM
If I understand you right, you want to reduce each decay curve into a single greyscale (or colormap) value. Obviously, there will be some loss in information, because you will not be able to reconstruct the "curve" from a single number.
All you need is to loop over all your decay curves and create a properly scaled 2D array. This you then can send to a picture indicator or intensity graph. Most likely, the raw data is already arranged e.g. as a 3D array, so all you need to do is autoindex over two stacked FOR loops, take the average of each decay curve, and autoindex out to get the 2D array you need.
Can you attach a simple example containing your raw data so we can see how things are layed out?
08-18-2007 11:31 AM
08-18-2007 11:59 AM
08-18-2007 12:07 PM
Hey,
Sorry for not clarifying in my last message, as i did more research in the example, i found out that this example shows the decay curve of one point at a time. So to gather 256*256 pixels, i will have to loop it that many times. Each curve represents the number of photons collected over time...
Looks like this will not be an efficient solution to gather an image so i will try to make my own routine to gather a whole *page* that has 256*256 blocks of curves. In that case, If i average the data for each block...will it be sufficient to use "Flatten to pixmap" to plot the picture?
Thanks again..
08-18-2007 12:16 PM
@Muttee wrote:
.will it be sufficient to use "Flatten to pixmap" to plot the picture?
Yes, that should work. You could even use "draw unflattend pixmap" directly, eliminating the middleman. 😉
Make sure you scale the data correctly and use the proper polymorphic instance. I would use the 8bit version and give it a greyscale color map.