Thanks Jaroslaw, a very good tool!
I'm just having some troubles with newline (\n) serialization in text elements.
I'd like to write an xml like:
<p>This is a multiline
root.p = sprintf('This is a multiline\ntext.');
but the var2str function implementation substitute all chars < 32 with ' '.
Keeping char(10) i.e. LF should allow this king of textual content.
Is this tool still under maintenance? A fix on this topic would be very useful.
Thanks in advance
26 Sep 2014
Read XML files into MATLAB struct and writes MATLAB data types to XML
Hi Daniel, The differences from the original are almost inevitable, because the log-polar transform is usually lossy. Unless you use a huge output array, the pixels in the outer rings will be further apart than the original image pixels. When you transform back, there's no way to recover the lost information, and so the resolution suffers. Antialiasing won't be able to help fundamentally.
Both functions use *imtransform* with default interpolation. (I ought to update to *imwarp* sometime.) It might be possible to get some improvements in quality by changing the interpolation rule - you'd need to learn about *makeresampler* to generate a resampler to give to imtransform. It still will not restore the original image though.
This is a great start for me. I'm trying to model foveal vision, but when I use the logsampback function the output image will have significant variations from the original that look like aliasing. Do you know of a way to add anti-aliasing into the logsample function?