|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: NI Vision Functions
Quote:
|
|
#2
|
|||
|
|||
|
Re: NI Vision Functions
We've been starting to work on camera-tracking code, and we ran into some issues. We thought that it might be a good idea to try the code that was posted here first, and make sure we could get that much to work. This is what we have so far:
Code:
public class Camera2012 {
public AxisCamera camera = AxisCamera.getInstance();
private static final BlockingFunction imaqConvexHullFn = NativeLibrary.getDefaultInstance().getBlockingFunction("imaqConvexHull");
static { imaqConvexHullFn.setTaskExecutor(taskExecutor); }
public static void convexHull(Pointer source, Pointer dest, int connectivity8) throws NIVisionException {
assertCleanStatus(imaqConvexHullFn.call3(source.address().toUWord().toPrimitive(), dest.address().toUWord().toPrimitive(), connectivity8));
}
}
taskExecutor: cannot find symbol assertCleanStatus: cannot find symbol My own experience with Java is limited; could you help us out with this? If you happen to notice anything that might be helpful, we'll take all suggestions. Thanks so much! |
|
#3
|
||||
|
||||
|
Re: NI Vision Functions
Essentially, this means you never created the taskExecutor object. The simplest way (I think) to use that code is to copy NIVision.java to your project, and add Dan's code into that.
|
|
#4
|
||||
|
||||
|
Re: NI Vision Functions
Quote:
Is there any documentation for the imaq functions C-side? Specifically, I would like to use imaqDetectRectangles and need the fields of the RectangleMatch struct. |
|
#5
|
|||
|
|||
|
Re: NI Vision Functions
Quote:
-Joe |
|
#6
|
||||
|
||||
|
Re: NI Vision Functions
Quote:
|
|
#7
|
|||
|
|||
|
Re: NI Vision Functions
Thanks so much for the tips - everything runs error-free now.
Would it be possible to see an example of convexHull() being properly called (for an image which I've already used an HSL threshold on)? |
|
#8
|
||||
|
||||
|
Re: NI Vision Functions
Quote:
Code:
convexHull(binaryImage.image,binaryImage.image,1); |
|
#9
|
|||
|
|||
|
Re: NI Vision Functions
Does anyone know if there is full documentation of the NIVision C functions anywhere to make this process easier?
|
|
#10
|
|||
|
|||
|
Re: NI Vision Functions
Program Filles/National Instruments/Vision/Documentation.
Specifically, you should look at the CVI document. Greg Mckaskle |
|
#11
|
|||
|
|||
|
Re: NI Vision Functions
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|