Skip to content
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

MatLab TiffRead Error #1

Open
calvinthommek opened this issue Mar 31, 2020 · 5 comments
Open

MatLab TiffRead Error #1

calvinthommek opened this issue Mar 31, 2020 · 5 comments

Comments

@calvinthommek
Copy link

Hello,
I'm a student from Heidelberg and we wanted to try out your program in our lab.
When trying to run the program in math lab there comes an error because of the tiffRead function.
Is there any manual on how to run this program? It's really confusing to set it up when not having much experience with Python or MatLab.
Would be really nice if you could help with getting this program run.
Kind regards,
Calvin Thommek

@sautami26
Copy link

Hello,
Even I tried to run your program but it gives an error because of the tiffRead function.
I would also request you if you could help with resolving this error and getting the program run.
Regards
Sautami

@cihanbilge
Copy link
Owner

cihanbilge commented Jul 9, 2020 via email

@sautami26
Copy link

Hello Sir,
Thank you very much for your response. I totally understand your busy schedule and despite that you could spare some time and responded, I am highly obliged.
I am a PhD student, new to this deep learning domain. Hence, I require guidance sometimes when I get stuck.
Today on seeing your response I could run that part of the code. Now, I got stuck with the 'sm' variable (code snippet below). I tried to figure it out for quite a long time but no luck.
%to catch the cells close to the boundry efficiently we zero-pad the image and Directional Ratio from each side
imagebase=zeros(max(size(image))+subimage_size);
side=subimage_size/2;
imagebase(side:side-1+sm(1), side:side-1+sm(2))=DirectionalRatio;
DirectionalRatio=imagebase;
imagebase=zeros(sm_max+subimage_size);
imagebase(side:side-1+sm(1),side:side-1+sm(2))=image;
image=imagebase;

Can you please guide me in resolving this issue.

Regards
Sautami

@skenney1652
Copy link

Hello,

I'm having an identical issue to Sautami when running the Matlab script astrocytes_dataGeneration. It looks like the variable sm isn't defined, when using CTRL+f, I find the first instance of that variable in this line:
imagebase(side:side-1+sm(1),side:side-1+sm(2))=DirectionalRatio;. It looks like maybe in some edition of the code it was previously defined but maybe didn't make it to the script uploaded in this package.

I haven't reached this line yet but it looks like we'll have the same issue with the variable sm_max which first appears in this line: imagebase=zeros(sm_max+subimage_size);
Could you load a version of the script including these elements defined? Similar to Sautami I'm not sure how to reason my way to defining them myself so it would be great if you could send something.

Another issue I was having was specifying image_list for just loading the data by tiffRead. I tried using the names of the files you included in the SomaExtraction package, e.g. MAX_24h_CHIR99021_FGF14_488_PanNav_568_MAP2_647_10_blue, but this doesn't work. To get things going, I just bypassed all this and manually tif-read the images myself but I feel like your design is probably more efficient, I just want to know how to use it. It's not terribly clear from the comments, at least to me. That's all I have for now, thank you for uploading the code for this really neat method and for answering our questions. I'm looking forward to running it on the data I'm studying. Thanks!

Best,
Steven

@bpavie
Copy link

bpavie commented Sep 29, 2020

Same issue as @sautami26 and @skenney1652 , after having added the function tiffRead.m from https://github.com/cihanbilge/SomaExtraction and re-run the script we can see that the variable sm is never set (and if it is a function it is not available), do we need to declare it somewhere?

Best,
Benjamin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants