tsipkens / atems

A MATLAB codebase to analyze TEM images of soot, which includes new methods associated with this project and a compilation of other pre-existing methods into a single package.
GNU General Public License v3.0
10 stars 8 forks source link

Example code does not run #46

Closed tytell closed 7 months ago

tytell commented 7 months ago

https://github.com/tsipkens/atems/blob/0e24b57c82b327cd8218f7a3daa0855ae0e298d6/README.md?plain=1#L127

This example code won't run as written, because fname is not yet defined. What is the structure of fname?

I was able to run this command:

Aggs = agg.analyze_binary(imgs_binary, pixsizes, imgs)

Based on the help in agg.analyze_binary, it looks like agg.analyze_binary(images_binary, Imgs), where Imgs is the structure output from tools.load_images should work, and should then include the file name, but I get an error:

Operator '' is not supported for operands of type 'struct'. Error in agg.analyze_binary (line 198) Aggs0(jj).length = max((max(row)-min(row)), (max(col)-min(col))) pixsize(ii);

tytell commented 7 months ago

Sorry I'm still figuring out how GitHub Issues work. This seems to be OK