search for: rimquickthresh

Displaying 1 result from an estimated 1 matches for "rimquickthresh".

Did you mean: imquickthresh
2001 Mar 01
0
Finalization and external pointer objects
...t;. This is actually a pointer to a C abstract data type. Most imaging functions in my library have a form like this IMAGE *imquickthresh(const IMAGE *src, IMAGE *target, float p1, int p2); the target parameter is optional and never used from R. This is made appropriate for a .C call like this Rimquickthresh(IMAGE **output, IMAGE **src, Sfloat *p1, Sint *p2) { IMAGE *dummy; dummy = imquickthresh(*src, NULL, (float)(*p1), (int)(*p2)); *output = dummy; } the R code calling this looks like function(src, p1, p2) { if (!is.image(src)) stop("Parameter 'src' should be an image.&qu...