-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calling table2cell method and table file I/O #105
Comments
Hi, @snk4tr ! Thanks for using Tablicious. In Tablicious, In Tablicious, If you want to use Tablicious's
Can you maybe share your I don't think that Tablicious can really provide a |
Thank you for your quick response @apjanke! tb = readtable('kadis700k_ref_imgs.csv');
tb = table2cell(tb);
for i = 1:size(tb,1)
ref_im = imread(['ref_imgs/' tb{i,1}]);
dist_type = tb{i,2};
for dist_level = 1:5
[dist_im] = imdist_generator(ref_im, dist_type, dist_level);
strs = split(tb{i,1},'.');
dist_im_name = [strs{1} '_' num2str(tb{i,2},'%02d') '_' num2str(dist_level,'%02d') '.bmp'];
disp(dist_im_name);
imwrite(dist_im, ['dist_imgs/' dist_im_name]);
end
end As I already figured out, the tb = xlsread('kadis700k_ref_imgs.csv');
tb = table2cell(tb); The rest of the code stays the same. |
Yep! The tabular file I/O functions like Exactly which of those functions you should use depends on the specific format of the data in your CSV file. If you want to show me the first few lines of it, I could probably whip up a little script for you that does the whole thing. If it's |
Dear @apjanke, thank you for your great contribution with the
tablicious
library.As a newbie with Matlab/Octave, I have a question running the table2cell method. My end goal is to just run some .m file with Octave with minimal edits of the initial functionality. Some of the methods there are not implemented in Octave so your library is really handy (e.g. the table2cell method). I am doing the following:
While this trick worked with the
io
package, here it looks like Octave does not see thetablicious
package.In the documentation I found that the
table2cell
method is a part of thetable
subpackage so I also tried to import is astablicious.table
or modify the initial Matlab code to call the table2cell method astable.table2cell
. Neither tricks worked.Could you please assist me with the issue? How do I replace the standard
table2cell
method with your implementation in thetablicious
package? Thank you!The text was updated successfully, but these errors were encountered: