Page 1 of 1

IntegralImage class.

PostPosted: Sun Jan 07, 2018 4:06 pm
by edurazee
Why can't the integral image class work with RGB images?

Why does it only work with Grayscale images?

Re: IntegralImage class.

PostPosted: Mon Jan 08, 2018 8:11 am
by andrew.kirillov
If it would be possible to use it with RGB images, how would you see it? Would you want to have 3 integral images - one for each RGB channel? You can do so manually, by extracting RGB channels. Or would you want to have one integral image, which is a sum of RGB values? In this case, what will it give you? Looking into the final integral image, you will not be able to find which RGB channel contributed more or less.

Re: IntegralImage class.

PostPosted: Mon Jan 08, 2018 9:00 am
by edurazee
Okay.

Check these two posts:

https://www.codeproject.com/Tips/456916 ... Csharp-NET

https://stackoverflow.com/questions/394 ... ter-output


In these posts, they are working with 3d integer arrays. So, an RGB image can be conveniently represented by a 3d integer array.

Re: IntegralImage class.

PostPosted: Mon Jan 08, 2018 10:51 am
by andrew.kirillov
Yes, you can represent RGB image as 3D array if you want. What is the relation with the original question though?

Re: IntegralImage class.

PostPosted: Mon Jan 08, 2018 1:03 pm
by edurazee
https://www.quora.com/How-can-I-convert ... f-integers

The relation is, an IntegalImage class which can handle R,G,B images is needed to directly operate on color images.

I think AForge.NET should also incorporate DoubleImage class.

Lack of these features is making AForge.NET a weak framework. That is why people are either going to Accord.NET or EmguCV.net.