Skip to content

Commit

Permalink
Fix InvocationException in Fiji caused by non-absolute path in filename
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoube committed Mar 6, 2012
1 parent cbb6cc1 commit 369a046
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/org/doube/bonej/pqct/Distribution_Analysis.java
Expand Up @@ -308,7 +308,7 @@ public void run(String arg) {
if(imageAndAnalysisDetails.suppressImages && !imageAndAnalysisDetails.saveImageOnDisk && roi != null){
makeImage = false;
}else{
resultImage = ResultsImage.getRGBResultImage(roi.scaledImage,roi.width,roi.height);
resultImage = ResultsImage.getRGBResultImage(roi.scaledImage,roi.width,roi.height, imageSavePath);
}

if(imageAndAnalysisDetails.stOn){
Expand Down
4 changes: 2 additions & 2 deletions src/org/doube/bonej/pqct/utils/ResultsImage.java
Expand Up @@ -31,8 +31,8 @@
public class ResultsImage{

/*Get image into which we'll start adding stuff*/
public static ImagePlus getRGBResultImage(double[] values,int width,int height){
ImagePlus tempImage = new ImagePlus("Visual results");
public static ImagePlus getRGBResultImage(double[] values,int width,int height, String path){
ImagePlus tempImage = new ImagePlus(path+"Visual results");
tempImage.setProcessor(new FloatProcessor(width,height,values));
new ImageConverter(tempImage).convertToRGB();
return tempImage;
Expand Down

0 comments on commit 369a046

Please sign in to comment.