![]() |
Running a custom deinterlacng program on the driver station
I'm trying to get two cameras running on our robot this year. I've started putting some code into our main program [Java]:
globals: Code:
final int numcameras = 2; // we've got this many camerasCode:
curframe = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);Code:
curcamera += 1; curcamera %= numcameras;Is there a part of the NIVision library that can receive this stream? Or do I need another Java library? And how is it possible to access the video stream with third-party programs in the DS? |
Re: Running a custom deinterlacng program on the driver station
Do you want to mod the images on the stream? Separating them, for example, into evens and odds to display into two different displays.
Or do you truly mean that you want to take even and odd lines in an single image and merge or separate them. I sorta assume the first, in which case, you can have take the i terminal in the while loop that is getting the images and use the Integer Divide and Remainder to divide by 2. This is the % equivalent in LV. Use the remainder of 0 or 1 wired to a case statement to display into the correct image display. Greg McKaskle |
Re: Running a custom deinterlacng program on the driver station
Quote:
ABABABABABAB The driver station would then simply grab every frame, and display the A frames in one window and the B frames in another. It would halve the framerate for each camera, but that's not important. |
Re: Running a custom deinterlacng program on the driver station
OK. So that is cleared up.
The receiving stuff is not in NIVision, but in the dashboard code. The loop allocates one image, gets the images, and displays them in one display. If you customize to have two displays, then you can write the images to alternate displays using even/odd code described above. Greg McKaskle |
| All times are GMT -5. The time now is 03:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi