Hello fellows, (my 2nd post here)
I have been experimenting with communicating TrakEM2 and Distortion Correction (Kaynig et al., 2010) plugin in Fiji for using the calculated non-linear transform of the lens correction in the second one. I have a feeling that the first plugin is more dynamic and arrives at a better approximation of the lens distortion. My objective is to run the correction in a much larger tile collection (500 tiles or High-resolution tiles) than the calibration tileset (3x3 with 50% overlap) before reimportation to TrakEM2 for the final montaging.
I have written a MatLab code to write a file called ‘distCorr.txt’ equal to the formatted text saved at the Distortion Correction ‘Save’ input menu (link attached).
link.m (2.5 KB)
However, the file is not recognized properly by Distortion Correction and either saves the images as zero matrices (empty images) or the Log windows shows:
java.lang.NullPointerException
at lenscorrection.NonLinearTransform.print(NonLinearTransform.java:281)
at lenscorrection.Distortion_Correction.run(Distortion_Correction.java:423)
at ij.IJ.runUserPlugIn(IJ.java:235)
at ij.IJ.runPlugIn(IJ.java:198)
at ij.Executer.runCommand(Executer.java:150)
at ij.Executer.run(Executer.java:65)
at java.lang.Thread.run(Thread.java:748)
Could a TrakEM2 user point in the right direction? I will be grateful. Have a nice day.
Cheers,
Marco