Commit 43ac2b80 authored by Vladimír Ulman's avatar Vladimír Ulman
Browse files

COS: pimped the findMaxDilation code and service script

parent 1fd78b11
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ bool reduceMarkers(const i3d::Image3d<VT>& traIn, i3d::Image3d<VT>& traOut, cons
	{
		//copy out the label from traOut, CCA on it, remove non-largest CC in the traOut image
		//std::cout << "found label: " << label << " (volume=" << sizesOfMarkers[label] << ")\n";
		if (sizesOfMarkers[label] < 500)
		if (sizesOfMarkers[label] < 1000)
		{
			std::cout << "label " << label << ": too small (" << sizesOfMarkers[label] << ") to be reduced\n";
			//have to restore it again (because the out image is already eroded)
@@ -136,7 +136,7 @@ int main(int argc, char** argv)
	{
		sprintf(fn,"/temp/reduced_%03d.tif",erosionRound);
		std::cout << "managed and saving: " << fn << "\n";
		//reducedTraImg.SaveImage(fn);
		reducedTraImg.SaveImage(fn);

		//TODO: test against resImg

+2 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ for i in `seq 0 64`; do
	echo "--------------------------------- $i ---------------------------------"

	tp=`printf %03d $i`
	./findMaxDilation  Fluo-N2DH-SIM+/01_GT/TRA/man_track${tp}.tif fakeRes.tif
	./findMaxDilation  01/silverGT_ulman/gtReference/Fluo-N2DH-SIM+/01_GT/TRA/man_track${tp}.tif  fakeRes.tif
	erosion=$?

	if [ $erosion -lt $smallestErosion ]; then smallestErosion=$erosion; fi