how to estimate summed area table for a color image??
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
A summed area table is a data structure and algorithm for quickly and efficiently generating the sum of values in a rectangular subset of a grid.
For a 2D space a summed area table can be generated by iterating x,y over the desired range,
I(x,y) = i(x,y) + I(x-1,y) + I(x,y-1) - I(x-1,y-1)
And the query function for a rectangle corners A(top-left), B(top-right), C(bottom-right), D can be given by:-
I(C) + I(A) - I(B) - I(D)
I need to calculate summed area table for color image(i.e. it's needed to calculate summed area table for each color channel independently) as the following equation:
![Capture2.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207140/Capture2.jpeg)
. Then i need to estimate a weighting map from the summed area table with the following equation:
![Capture3.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207141/Capture3.jpeg)
Does any one know how to do this in Matlab??
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!