I am having problems programming imaqCentroid. What is PointFloat* centroid? I tried declaring a variable/array but it doesn't work. Isn't this suppose to be the X and Y value of the centroid upon return? What do I compute then in the command for this?
This is a pretty standard way for functions to return values in C, especially when there are multiple values to be returned. You always have to declare a regular variable so that the calling program creates space to store the information. You pass the pointer to that space to the function, which fills the space with information during the function call.
Thank you for the prompt reply. If I were to display ¢roid.x and ¢roid.y, they should be in float type? I created a ui to display them and put both in float type, but it generated a run time error "invalid argument type: found 'pointer to float' expected 'float'.