Open pr4deepr opened 3 years ago
BTW, I've attached the images as a zip file above.. its quite small
Hi @pr4deepr ,
Only issue is that the parametric image generated does not have decimal values as a label. How can I enable float values for labels?
Ext.CLIJ2_replaceIntensities(cell_1, distance_calibrated, label_map);
This function creates a new image label_map
of the same type as cell_1
. In general, this makes sense. In your case it doesnt'. If you change the type of the input image, you will have float numbers in the resulting image. Try adding these two lines at the very beginning of your script:
selectWindow("cell_1.tif");
run("32-bit");
Let me know if the suggested solution works. And btw. on image.sc I respond quicker than on github ;-)
Cheers, Robert
Hi @haesleinhuepf I have been using clij to figure out how to measure the nearest neighbour between two label images, i.e, if I have two label maps, cell_1 and cell_2, I would like to measure for every cell in cell_1, how far away is the closest cell_2? As far as I can tell, the closest pluging I found is: Ext.CLIJx_labelProximalNeighborCountMap but this takes two label maps, and counts for every label in label map 1 how many labels are in a given distance range to it in label map 2. I would like the distances instead. I don't think there is any other function, so I wrote this:
Is this workflow ok? The order of the images passed means, it will measure distance of cell_1 to closest cell_2.
This seems to get what I need. Only issue is that the parametric image generated does not have decimal values as a label. How can I enable float values for labels? Perhaps not too urgent but I'd like to know if its possible.
Also, would this be of interest as a plugin in CLIJx?
Cheers Pradeep
cells.zip