|
@@ -792,27 +792,25 @@ void SemSegNovelty::semanticseg ( CachedExample *ce, NICE::Image & segresult, NI
|
|
|
timer.stop();
|
|
|
std::cout << "AL time for determination of novel regions: " << timer.getLastAbsolute() << std::endl;
|
|
|
|
|
|
-// timer.stop();
|
|
|
-// cout << "second: " << timer.getLastAbsolute() << endl;
|
|
|
- timer.start();
|
|
|
-
|
|
|
- ColorImage imgrgb ( xsize, ysize );
|
|
|
-
|
|
|
- std::stringstream out;
|
|
|
- std::vector< std::string > list2;
|
|
|
- StringTools::split ( Globals::getCurrentImgFN (), '/', list2 );
|
|
|
- out << resultdir << "/" << list2.back();
|
|
|
-
|
|
|
- noveltyImage.writeRaw(out.str() + "_run_" + NICE::intToString(this->iterationCountSuffix) + "_" + noveltyMethodString+".rawfloat");
|
|
|
-
|
|
|
if (b_visualizeALimages)
|
|
|
{
|
|
|
+ timer.start();
|
|
|
+
|
|
|
+ std::stringstream out;
|
|
|
+ std::vector< std::string > list2;
|
|
|
+ StringTools::split ( Globals::getCurrentImgFN (), '/', list2 );
|
|
|
+ out << resultdir << "/" << list2.back();
|
|
|
+
|
|
|
+ noveltyImage.writeRaw(out.str() + "_run_" + NICE::intToString(this->iterationCountSuffix) + "_" + noveltyMethodString+".rawfloat");
|
|
|
+
|
|
|
+ ColorImage imgrgb ( xsize, ysize );
|
|
|
ICETools::convertToRGB ( noveltyImage, imgrgb );
|
|
|
showImage(imgrgb, "Novelty Image");
|
|
|
+
|
|
|
+ timer.stop();
|
|
|
+ cout << "AL time for writing the raw novelty image: " << timer.getLastAbsolute() << endl;
|
|
|
}
|
|
|
|
|
|
- timer.stop();
|
|
|
- cout << "AL time for writing the raw novelty image: " << timer.getLastAbsolute() << endl;
|
|
|
}
|
|
|
|
|
|
inline void SemSegNovelty::computeClassificationResults( const NICE::MultiChannelImageT<double> & feats,
|