|
@@ -8,10 +8,11 @@
|
|
|
#include "core/image/ImageT.h"
|
|
|
#include "core/vector/VectorT.h"
|
|
|
#include "core/vector/MatrixT.h"
|
|
|
-#include <core/imagedisplay/ImageDisplay.h>
|
|
|
#include <core/image/Filter.h>
|
|
|
#include <core/image/Convert.h>
|
|
|
|
|
|
+#include <core/imagedisplay/ImageDisplay.h>
|
|
|
+
|
|
|
#include <iostream>
|
|
|
|
|
|
#include <core/image/RectT.h>
|
|
@@ -37,68 +38,11 @@ ICETools::~ICETools()
|
|
|
void ICETools::selectRectangles ( const NICE::Image & panel, NICE::Image & overlay, vector<Vector> & x, int color )
|
|
|
{
|
|
|
fthrow ( Exception, "ICETools::selectRectangles -- not yet implemented due to old ICE version." );
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
void ICETools::selectPoints ( const NICE::Image & panel, NICE::Image & overlay, vector<Vector> & x, int color )
|
|
|
{
|
|
|
fthrow ( Exception, "ICETools::selectPoints -- not yet implemented due to old ICE version." );
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
void ICETools::convertToRGB ( const NICE::Matrix & m, NICE::ColorImage & img )
|
|
@@ -147,66 +91,19 @@ int ICETools::markImage ( const NICE::Image & img, NICE::Image & mark, int marks
|
|
|
{
|
|
|
fprintf ( stderr, "ICETools::markImage: reimplement this function for NICE\n" );
|
|
|
exit ( -1 );
|
|
|
-
|
|
|
-
|
|
|
- int flags;
|
|
|
- int p[2];
|
|
|
- int xo = -1;
|
|
|
- int yo = -1;
|
|
|
-
|
|
|
- while(1) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- if ( (flags & M_LEFT_DOWN) > 0 ) {
|
|
|
- if ( (p[0] != xo) || (p[1] != yo) ) {
|
|
|
- if ( marksize == 1 ) {
|
|
|
-
|
|
|
-
|
|
|
- mark.setPixel(p[0],p[1],color);
|
|
|
- } else {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- xo = p[0];
|
|
|
- yo = p[1];
|
|
|
- }
|
|
|
- }
|
|
|
- if ( (flags & M_RIGHT_DOWN) > 0 ) {
|
|
|
- while ( (flags & M_RIGHT_DOWN) > 0 ) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- };
|
|
|
- return -1;
|
|
|
- }
|
|
|
- }
|
|
|
- */
|
|
|
-
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
int ICETools::showImages ( vector<NICE::Image> & imagelist )
|
|
|
{
|
|
|
#ifndef NOVISUAL
|
|
|
for ( size_t j = 0 ; j < imagelist.size() ; j++ )
|
|
|
{
|
|
|
-
|
|
|
-
|
|
|
showImage ( imagelist[j] );
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
int xsize = imagelist[0].width();
|
|
|
-
|
|
|
-
|
|
|
int ysize = imagelist[0].height();
|
|
|
|
|
|
int n = imagelist.size();
|