| 17 | using forge::common::getHistogram; |
| 18 | |
| 19 | fg_err fg_create_histogram(fg_histogram *pHistogram, |
| 20 | const unsigned pNBins, const fg_dtype pType) |
| 21 | { |
| 22 | try { |
| 23 | ARG_ASSERT(1, (pNBins>0)); |
| 24 | |
| 25 | *pHistogram = getHandle(new common::Histogram(pNBins, (forge::dtype)pType)); |
| 26 | } |
| 27 | CATCHALL |
| 28 | |
| 29 | return FG_ERR_NONE; |
| 30 | } |
| 31 | |
| 32 | fg_err fg_retain_histogram(fg_histogram* pOut, fg_histogram pIn) |
| 33 | { |