Skip to content

Commit c7b00c5

Browse files
committed
Only once show all
1 parent f988d42 commit c7b00c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Fiji/scripts/Plugins/Template_Matching/2step-TemplateMatching.ijm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#@ImagePlus (Label="Image") image
1111

1212
// Show all ROI and associate with Slices
13-
roiManager("Show All");
14-
roiManager("Associate", "true");
13+
//roiManager("Show All");
14+
//roiManager("Associate", "true");
1515

1616
// Get image names
1717
selectImage(temp1);
@@ -58,13 +58,13 @@ for (i=1; i<=n; i++) {
5858
//print(x,y,width,height);
5959

6060
// Run template matching on slice with search ROI
61-
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");
61+
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");
6262

6363
// Close hidden Slice image
64-
//selectImage("Slice");
64+
//selectImage("Slice_"+i);
6565
//close();
6666

67-
// 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
67+
// Rename and Set Z-position of the last found ROI
6868
nRoi_new = roiManager("count");
6969

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

0 commit comments

Comments
 (0)