amat icon indicating copy to clipboard operation
amat copied to clipboard

Added support for square filters.

Open anweidong opened this issue 7 years ago • 4 comments

Use integral image to compute the encodings and costs.

To use the square filters google = imresize(imread('google.jpg'),0.5); mat = AMAT(google, 'shape', 'square');

Now the costs is using mean square errors. There is also an implementation for the heuristic costs (Line 699-713) but some issues along the boundaries remains so that part of the code is commented out.

The implementation is ~10s faster than the disk one with mean square errors and ~7s faster with the heuristic costs. However the result is not as good as the disk implementation especially for the reconstruction after grouping and simplifying.

Looked into the computeReconstruction and it is not necessary to change.

anweidong avatar May 30 '17 17:05 anweidong

  • Heuristics costs added
  • bug fixed along the boundaries

Result for the google logo google

anweidong avatar Jun 07 '17 22:06 anweidong

Added the oriented squares filters. Added implementation for multiple kinds of filters.

google = imresize(imread('google.jpg'),0.5); mat = AMAT(google, 'shape', 'mixed');

This implementation is not working so well for setCover, but the visualization of encoding and costs makes sense now.

One scenario now works fine. Set (line 10) rotations = [] i.e. the disk and square filters without rotation. Debugging what still needs to be changed for rotated squares.

anweidong avatar Jun 22 '17 17:06 anweidong

Bug fixed for the rotated square filters. Run the following code:

google = imresize(imread('google.jpg'),0.5); mat = AMAT(google, 'shape', 'mixed');

Result for the google logo image. amat

anweidong avatar Jun 22 '17 21:06 anweidong

Added implementation for combined filter by rotating the image. Run the following mat = AMAT(google, 'shape', 'mixed2'); 1

anweidong avatar Jul 05 '17 21:07 anweidong