Skip to content
Snippets Groups Projects
Commit ecc207b6 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Check input data dimensions to meet requirements

parent 826c0cfd
No related branches found
No related tags found
No related merge requests found
......@@ -538,7 +538,15 @@ function process_beads() {
fname_nosuffix = stripOmeSuffix(File.nameWithoutExtension); // filename without extension
respath = fpath + "/" + fname_nosuffix + "_NoiSee-Bead-Analysis"; // path for additional results
File.makeDirectory(respath);
// TODO: check if image dimensions meet our expectations (z=1, t>1)
// check if image dimensions meet our expectations (z=1, t>1)
getDimensions(_, _, _, slices, frames);
if (slices > 1 || frames == 1) {
print("Input data needs to be a time-lapse with a single slice only!");
print("Found " + slices + " slices, expected 1!");
print("Found " + frames + " frames, expected > 1!");
exit_show();
}
if (bitDepth() == 32) {
print("Floating point images are not supported!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment