Skip to content

Commit

Permalink
Only once show all
Browse files Browse the repository at this point in the history
  • Loading branch information
LauLauThom committed Apr 17, 2019
1 parent f988d42 commit c7b00c5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#@ImagePlus (Label="Image") image

// Show all ROI and associate with Slices
roiManager("Show All");
roiManager("Associate", "true");
//roiManager("Show All");
//roiManager("Associate", "true");

// Get image names
selectImage(temp1);
Expand Down Expand Up @@ -58,13 +58,13 @@ for (i=1; i<=n; i++) {
//print(x,y,width,height);

// Run template matching on slice with search ROI
run("Template Matching Image", "template=" + Temp2_title + " image=Slice_" + i +" flip_template_vertically rotate=[] matching_method=[Normalised 0-mean cross-correlation] number_of_templates=2 score_threshold=0.50 min_peak_height=0 maximal_overlap=0.25 add_roi");
run("Template Matching Image", "template=" + Temp2_title + " image=Slice_" + i +" flip_template_vertically rotate=[] matching_method=[Normalised 0-mean cross-correlation] number_of_templates=2 score_threshold=0.50 min_peak_height=0 maximal_overlap=0.25 add_roi show_result");

// Close hidden Slice image
//selectImage("Slice");
//selectImage("Slice_"+i);
//close();

// Rename and Set Z-position of the last found ROI - TO FIX : Currently assume that the matching found all object. Rather look at the difference of count
// Rename and Set Z-position of the last found ROI
nRoi_new = roiManager("count");

for (j=1; j<=nRoi_new-nRoi_old; j++) {
Expand Down

0 comments on commit c7b00c5

Please sign in to comment.