Commit 3b485572 authored by Andrey Filippov's avatar Andrey Filippov

started read cameras with timeout

parent 2d439266
...@@ -9661,7 +9661,7 @@ if (MORE_BUTTONS) { ...@@ -9661,7 +9661,7 @@ if (MORE_BUTTONS) {
LENS_DISTORTIONS.stopEachSeries= false; // will not ask for confirmation after done LENS_DISTORTIONS.stopEachSeries= false; // will not ask for confirmation after done
LENS_DISTORTIONS.lambda=LENS_DISTORTIONS.fittingStrategy.lambdas[0]; LENS_DISTORTIONS.lambda=LENS_DISTORTIONS.fittingStrategy.lambdas[0];
Distortions distortions_dbg = LENS_DISTORTIONS; Distortions distortions_dbg = LENS_DISTORTIONS;
LENS_DISTORTIONS.LevenbergMarquardt( LENS_DISTORTIONS.LevenbergMarquardt( // Index 0 out of bounds for length 0
false, // skip dialog false, // skip dialog
false, // new: dry_run use it here? false, // new: dry_run use it here?
true); true);
...@@ -51,6 +51,22 @@ public class ImagejJp4TiffMulti { ...@@ -51,6 +51,22 @@ public class ImagejJp4TiffMulti {
final boolean scale, final boolean scale,
final String std) throws IOException, FormatException // std - include non-elphel properties with prefix std final String std) throws IOException, FormatException // std - include non-elphel properties with prefix std
{ {
return getMultiImages(
urls,
imps,
0.0, // final double timeout_sec,
scale,
std);
}
public ImagePlus [] getMultiImages(
final String [] urls,
final ImagePlus [] imps,
final double timeout_sec,
final boolean scale,
final String std) throws IOException, FormatException // std - include non-elphel properties with prefix std
{
// final ImagePlus [] imps = new ImagePlus [urls.length]; // final ImagePlus [] imps = new ImagePlus [urls.length];
LOGGER.error("Please ignore 'File has length 0 and may be corrupt' - caused by bioformat reading memory file"); LOGGER.error("Please ignore 'File has length 0 and may be corrupt' - caused by bioformat reading memory file");
final Thread[] threads = newThreadArray(MAX_THREADS); final Thread[] threads = newThreadArray(MAX_THREADS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment