Help With an Algortihm
Hey I'm was looking for an algorithmic device to measure the relative density of blackness in an area of a picture. I am using it to model Moiré patterns as a heightmap. These
I basically am simulating this in a way where I graph the family of curves x^2 + y^2 = nr^2 where n is iterated and forms a collection of concentric circles. I sample this data at every x and y in a region, and the this basically simulates a Moiré patterns created by a checkerboard grid kind of like this figure in the article
I could not figure out the math for the familys of ellipses and hyperbolas as are described in the article, so I considered the option of using an 'energy function' like those seen in content-aware image resizing to interpret the texture as sort of a height map that is measured by the density or 'amount' of black in the region to determine the height.
In any case, I was wondering if anyone had any algorithmic device to measure the relative density of blackness in an area of a picture.
What exactly do you mean by relative density of blackness? It sounds like you are talking about a gradient.
Originally Posted by Tonto
Gradient was in fact what was used in the final demos of the content-aware image resizer. They used a few more sophisticated measures and didn't find that they performed significantly better.
Yeah, it definitely uses the gradiant vector in the article, I just um, should I just search that? I'm a little lost, I guess I should just research