X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaMaracasVisuManualPaint_Model.cxx;fp=bbtk%2Fsrc%2FbbcreaMaracasVisuManualPaint_Model.cxx;h=03207355c8ab00f6a3a75bddc35378f26b4a766d;hb=c6fea780dac325eca6315ac9b297080952e53589;hp=e36413448e29d70fe33e61093d2f50958584bbcd;hpb=dea0efc567d8332b2e7eb936e3ba4ac1c11b2542;p=creaMaracasVisu.git diff --git a/bbtk/src/bbcreaMaracasVisuManualPaint_Model.cxx b/bbtk/src/bbcreaMaracasVisuManualPaint_Model.cxx index e364134..0320735 100644 --- a/bbtk/src/bbcreaMaracasVisuManualPaint_Model.cxx +++ b/bbtk/src/bbcreaMaracasVisuManualPaint_Model.cxx @@ -11,6 +11,9 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ManualPaint_Model,bbtk::AtomicBlackBox); //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== + + +/* void ManualPaint_Model::Process() { @@ -58,7 +61,8 @@ void ManualPaint_Model::Process() if (bbGetInputByImagePoints()!=NULL) { - int i,j,k; + int i,ii=0; +// int i,j,k; // int ia,ja,ka; // int ii,jj,kk; int ext[6]; @@ -66,11 +70,16 @@ void ManualPaint_Model::Process() int dimX=ext[1]-ext[0]+1; int dimY=ext[3]-ext[2]+1; int dimZ=ext[5]-ext[4]+1; +// char *pByImagePoints = bbGetInputByImagePoints->GetScalarComponent(i,j,k,0); +// int sizeData; +//#pragma omp parallel for for (i=0;i0) + { + GETVALUE_MANUALPAINT(vI2,pI2,sTI2) + if (vI2==0) + { + manualpaintmodel->PaintImage(i,j,k); + } // vI2 + } // vBIP + pBIP = pBIP + sSBIP; + pI2 = pI2 + sSI2; + }// for i + }// for j + }// for k + + printf("ManualPaint_Model %d%\n", 100 ); + } // if ByImagePoints + } else { + printf("EED Warning: Image not set. Box creaMaracasVisu::ManualPaint_Model (BBTK) \n"); + } // if + + if (bbGetInputImage2()!=NULL) + { + bbSetOutputOut( bbGetInputImage2() ); + } else if (bbGetInputImage()!=NULL) { + bbSetOutputOut( bbGetInputImage() ); + } else { + bbSetOutputOut( NULL ); + } +} //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //=====