- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I'm trying to use IPL's (version 2.5) ComputeHisto function for a signed image. At first, I got a "key
(srcImage->depth & IPL_DEPTH_SIGN) || (srcImage->depth == IPL_DEPTH_32F)
If I understood right, this means IPL can't compute a histogram for signed images... Is this really true? If it is, could anyone suggest an alternative?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
RTFM! In the IPL Reference, Appendix A, Table A-9, it says that ComputeHisto only supports 1u, 8u, and 16u. So I'll have to implement this myself...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where's the problem? You can use also the unsigned histogram function and interpret the lower half as the positive values, the upper half as the negative ones (1->1; 2->2; ...; 32767->32767; 65535->-1; 65534->-2 ...)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page