View Single Post
  #1   Spotlight this post!  
Unread 01-30-2016, 12:02 PM
gbear605's Avatar
gbear605 gbear605 is offline
Scarebear
FRC #1768 (Nashoba Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 30
gbear605 is an unknown quantity at this point
Image cropping using NVision

We have a 180 degree camera that we want to get an image from. We have it working using a basic camera server (the code that is demonstrated in SimpleVision sample project). To have a 180 degree field of view, the camera has the following view (the white space is the actual part that the camera sees)



When we are at a reasonable image size to stream on the network (320x340), the camera itself makes it so the pink square is all that we can see of the output. Our problem is that we need to see stuff that is in the white area of the circle below the pink square. What we are thinking we could do to solve this is to get the 1920x1080 image on the RoboRio and then use NIVision to crop it to an area below the pink square so we can see what we want to.

However, NIVision appears to have almost no documentation. What is the correct way to crop an image using NIVision?

Last edited by gbear605 : 01-30-2016 at 12:04 PM.
Reply With Quote