03-07-2010 07:14 AM
How to get the data of a row drawn using cursor from an .jpg picture and plot it into a graph display?
I have a .jpg picture saved on computer. Now from that picture I need to extract data of a particular row which can be chose from the display only. Then I have to plot that extract data in graph display so that I can do analysis as per requirement, e.g. Get the peaks or valleys.
How to get the data of chosen row from .jpg picture and display it?
Solved! Go to Solution.
03-07-2010 10:11 AM
You can use Read JPEG File to get the jpg data, then use Unflatten Pixmap to convert the data into a 2D array.
Then it's easy to extract a row, it's just indexing the array data.
Hope this helps,
Daniel
03-07-2010 08:58 PM
thank you dan_u.
i have tried following you advice. but there is a problem in reading file . error at read jpeg file is "LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488: Command requires GPIB Controller to be Controller-In-Charge.". the file required to read is attached here.
03-07-2010 09:09 PM
03-08-2010 08:51 AM
03-08-2010 08:58 AM
So you want to extract one of the curves in the jpg file? Good luck with that...
You should try to get the raw data instead of just a jpg.
03-08-2010 09:49 AM
03-08-2010 10:11 AM
Weiyuan wrote:
Well, my suggestion is: build an event structure, add mouse-hold event, save the mouse locations to an array or file. You have to trace every curve in your image. It is gonna be an interesting program.
It will still be difficult to calibrate the data.... Howdo you translate the x,y mouse coordinates to physical units?
Not to talk about accuracy...
03-08-2010 10:58 AM
03-08-2010 11:25 AM