omrysendik / DCor

Deep Correlations for Texture Synthesis
BSD 3-Clause "New" or "Revised" License
18 stars 10 forks source link

Is there a way to visualize structure matrix? #1

Closed wzm2256 closed 7 years ago

wzm2256 commented 7 years ago

Is there a way to visualize structure matrix as in fig2?

omrysendik commented 7 years ago

Hi,

Thanks for asking! Simply call ACorrTensor = CalcACorrTensor(Feats) which returns the deep autocorr tensor and then choose which index of the maps to plot by imshow(ACorrTensor(:,:,ChosenInd),[]); Let me know if this suffices.

wzm2256 commented 7 years ago

@omrysendik Well, when the size is even number, like (128,128,1), it doesn't work, since the size does not fit when use dot divide . I resize it to (129, 129, 1) and it works well.

omrysendik commented 7 years ago

That's right. This released version doesn't support even sizes images. Notice that there's an assertion in Verify.m.