06-22-2018 07:20 AM
I'm a VI for interacting with camera image data. I have so far considered using intensity graph and 2D picture controls but both have problems. I wanted to see if the community had any thoughts
Spec:
Raw data coming in is a 2D array of U16. Roughly 1000x1000 at most. I'm planning incorporate zoom and autoscaling functionality at a minimum. I want only nearest neighbor interpolation. Ideally should be performant up to about 30 fps
Issues:
1) The intensity plot will make it difficult to allow the user to draw boxes and such to select a ROI. The only way I can think to do this is a picture overlay. I'm concerned overlaying a picture control with the intensity plot will give performance issues.
(https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kHjFSAU)
The intensity plot however makes it easy to keep nearest neighbor interpolation
2) The picture control avoids the overlay complexity issue above (single drawing a square when the user mouses down in a picyture control is straightforward). However, I can't see any way to easily have the ROI-zoom in have the nearest neighbor filtering. The filtering used by the 'zoomFactor' property is apparently not even controlled by LabVIEW (?!) and may vary depending on the zoomfactor and the # of pixels.
(https://forums.ni.com/t5/LabVIEW/Disabling-image-quot-zoomfactor-quot-filtering/td-p/811302/page/2)
I imagine I could upsample the image but I am not sure how this would turn out.
Attached some code sandboxes to play with. 2D picture ones are snippets, but I attached the VI for the image control as that already has a bunch of events. (hit z or the zoom-button and draw a box to zoom)
Thanks for any thoughts,
Solved! Go to Solution.
06-22-2018 08:36 AM - edited 06-22-2018 08:36 AM
Here the draft of selection/zoom for intensity graph
06-22-2018 08:42 AM
Ah fantastic, wasn't aware you could draw on top of the intensity plot.
Thank you!