-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from salimkanoun/dev
version 1.2
- Loading branch information
Showing
13 changed files
with
704 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
|
||
import java.util.ArrayList; | ||
|
||
import ij.IJ; | ||
import ij.ImageJ; | ||
import ij.ImagePlus; | ||
|
||
public class Run_Pet_Ct { | ||
|
||
|
||
public Run_Pet_Ct(ArrayList<ImagePlus> imagePlusList) { | ||
String seriesUIDs = ChoosePetCt.buildSeriesUIDs(imagePlusList); | ||
if( seriesUIDs == null) return; | ||
if( seriesUIDs.startsWith("2CTs")) seriesUIDs = ""; | ||
IJ.runPlugIn("Pet_Ct_Viewer", seriesUIDs); | ||
wait4bkgd(); | ||
} | ||
|
||
private void wait4bkgd() { | ||
Integer i = 0, j; | ||
while( ChoosePetCt.loadingData == 1 || ChoosePetCt.loadingData == 3) { | ||
mySleep(200); | ||
i++; | ||
if( (i % 20) == 0 && ChoosePetCt.loadingData == 1) { | ||
ImageJ ij = IJ.getInstance(); | ||
if( ij != null) ij.toFront(); | ||
j = i/5; | ||
IJ.showStatus("Loading data, please wait " + j.toString()); | ||
} | ||
} | ||
} | ||
|
||
private void mySleep(int msec) { | ||
try { | ||
Thread.sleep(msec); | ||
} catch (Exception e) { e.printStackTrace();} | ||
} | ||
|
||
} |
Oops, something went wrong.