|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Image Manipulation
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 |
|
#2
|
|||
|
|||
|
Re: Image Manipulation
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 |
|
#3
|
||||
|
||||
|
Re: Image Manipulation
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 Code:
Image* orig=YourCameraImage; Image* top50pxImg = imaqCreateImage(100,50); imaqCrop(orig,top50pxImg,0,0,100,50) |
|
#4
|
||||
|
||||
|
Re: Image Manipulation
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Image Gallery | Compnerd | Website Design/Showcase | 9 | 24-01-2008 00:26 |
| Buzz's New Manipulation Technique? | Neo3One3 | Robot Showcase | 7 | 12-01-2007 16:07 |
| FIRST logo manipulation | mightywombat | IT / Communications | 12 | 04-05-2004 20:23 |
| Image Needed | Tarsen | Website Design/Showcase | 1 | 17-10-2003 23:22 |