Revision: 56461
http://sourceforge.net/p/brlcad/code/56461
Author: mohitdaga
Date: 2013-08-02 09:22:05 +0000 (Fri, 02 Aug 2013)
Log Message:
-----------
Add comments for stats routines
Modified Paths:
--------------
brlcad/trunk/include/icv.h
Modified: brlcad/trunk/include/icv.h
===================================================================
--- brlcad/trunk/include/icv.h 2013-08-02 06:49:36 UTC (rev 56460)
+++ brlcad/trunk/include/icv.h 2013-08-02 09:22:05 UTC (rev 56461)
@@ -501,14 +501,68 @@
*
*/
+/**
+ * This function calculates the histogram of different channels
+ * seperately.
+ *
+ * @param img Image of which histogram is to found.
+ * @param n_bins number of bins required.
+ * @return Histogram of size_t type array. This 2-dimension array
+ * is of size c X n_bins where c is the channels in the image.
+ *
+ */
ICV_EXPORT size_t **icv_hist(icv_image_t* img, int n_bins);
+/**
+ * Finds the minimum value in each channel of the image.
+ *
+ * @return a double array of size channels. Each element contains min
+ * value of the channel.
+ *
+ * For eg. min = icv_min(bif);
+ * min[0] gives the minimum value of all the pixels in first bin.
+ * and so on.
+ *
+ */
ICV_EXPORT double *icv_min(icv_image_t* img);
+/**
+ * Finds the average value in each channel of the image.
+ *
+ * @return a double array of size channels. Each elements contains
+ * average value of the channel.
+ *
+ * For eg. mean = icv_mean(bif);
+ * mean[0] gives the average value of all the pixels in first channel
+ * and so on.
+ *
+ */
ICV_EXPORT double *icv_mean(icv_image_t* img);
+/**
+ * Finds the sum of all the pixel values for each channel of the image
+ *
+ * @return a double array of size channels. Each element contains sum
+ * value of the channel.
+ *
+ * For eg. sum = icv_sum(bif);
+ * sum[0] gives the sum of all the pixels in first channel
+ * and so on.
+ *
+ */
ICV_EXPORT double *icv_sum(icv_image_t* img);
+/**
+ * Finds the max value in each channel of the image.
+ *
+ * @return a double array of size channels. Each element contains max
+ * value of the channel.
+ *
+ * For eg. max = icv_max(bif);
+ * max[0] gives the maximum value of all the pixels in first bin.
+ * and so on.
+ *
+ */
ICV_EXPORT double *icv_max(icv_image_t* img);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits