Hi!
We are currently trying to edit around with the image we get from our dashboard.
For example, if we wanted to change which part of the image we get, how would we accomplish this?
Ex: Image size is a 100x100 rect, but we only want the top 50 pixels to display.
Anyone have any idea how to do this? We have been trying for a few hours to no avail…
Thanks!
-1771
The image being sent from the robot to the dashboard is the compressed image from the camera. While it is possible to have the robot uncompress, subset, compress, and transmit, you are obviously putting quite a bit of extra work on the cRIO. Instead, you may want to open the code for the dashboard, and on the dashboard, subset the image between the Get PC Image and the display.
Greg McKaskle
Why do you just want the top 50px?
Although you can’t mess with the Dashboard Image, you can crop images. I don’t have the NI vision documentation with me, but it is something to the effect of
Image* orig=YourCameraImage;
Image* top50pxImg = imaqCreateImage(100,50);
imaqCrop(orig,top50pxImg,0,0,100,50)
Like Gred said though, the best approach would be to get access to the image through the dashboard and manipulate it on your laptop so you’re not putting any more stress on your cRIO.