#include "bbstdRelay.h"
#include "bbitkPackage.h"
+
namespace bbstd
{
using namespace bbstd;
namespace bbitk
{
+
BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,Relay,anyImagePointer);
+
} // namespace bbitk
#endif
Program: bbtk
Module: $RCSfile: bbitkImageSeriesReader.cxx,v $
Language: C++
- Date: $Date: 2008/05/16 14:03:19 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/06/26 07:55:12 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
BBTK_ADD_BLACK_BOX_TO_PACKAGE(itk,ImageSeriesReader);
-
-
-
void ImageSeriesReader::Read()
{
const std::vector<std::string>& filenames = bbGetInputFileNames();
}
-
-
/**
Template Processing
*/
<<bbtk::TypeName<T>()
<<">::Read()"<<std::endl);
-
-
typedef T itkImageType;
typedef itk::ImageSeriesReader< itkImageType > itkReaderType;
Program: bbtk
Module: $RCSfile: bbitkImageSeriesReader.h,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:50 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/06/26 07:55:12 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
BBTK_INPUT(ImageSeriesReader,FileNames,
"vector of file names with complete paths",vectorofstring,"file names list");
BBTK_OUTPUT(ImageSeriesReader,Out,"Output itk::image<T,D> with type T and dimension D determined by the content of the files",anyImagePointer,"");
+
BBTK_END_DESCRIBE_BLACK_BOX(ImageSeriesReader);
//=================================================================
new ASCII asciiA
set asciiA.In "72 105 33"
// --> default is 0
-// set asciiB.type 0
+// set asciiB.Type 0
new ASCII asciiB
set asciiB.In "SOS"
- set asciiB.type 1
+ set asciiB.Type 1
print $asciiA.Out$
print $asciiB.Out$
std::string result("");
if (bbGetInputIn()!=""){
- if (bbGetInputtype()==0){
+ if (bbGetInputType()==0){
std::string commandstr(bbGetInputIn());
bool ok=true;
int pos1=0,pos2;
pos1=pos2+1;
pos2 = commandstr.find(" ",pos2+1);
} // while
- } // if type 0
+ } // if Type 0
- if (bbGetInputtype()==1){
+ if (bbGetInputType()==1){
int i,size=bbGetInputIn().size();
for (i=0;i<size;i++){
asciiValue = (int)bbGetInputIn()[i];
result +=" ";
} // i!=size-1
} // for
- } // type 1
+ } // Type 1
}
bbSetOutputOut( result );
}
void ASCII::bbUserConstructor()
{
bbSetInputIn("");
- bbSetInputtype(0);
+ bbSetInputType(0);
}
void ASCII::bbUserCopyConstructor()
virtual void bbUserDestructor();
//==================================================================
BBTK_DECLARE_INPUT(In,std::string);
- BBTK_DECLARE_INPUT(type,int);
+ BBTK_DECLARE_INPUT(Type,int);
BBTK_DECLARE_OUTPUT(Out,std::string);
BBTK_PROCESS(Process);
void Process();
BBTK_DESCRIPTION("ascii codes sequence to string - string to ascii codes sequence");
BBTK_CATEGORY("misc");
- BBTK_INPUT(ASCII,In,"Input Ascii code or Ascii character",std::string,"");
- BBTK_INPUT(ASCII,type,"type (default 0) 0=Ascii codes to string, 1=String to ascii codes",int,"");
- BBTK_OUTPUT(ASCII,Out,"Ascii codes sequence or characters sequence",std::string,"");
+ BBTK_INPUT(ASCII,In, "Ascii code or Ascii character", std::string,"");
+ BBTK_INPUT(ASCII,Type, "Conversion type (default 0) 0=Ascii codes to string, 1=String to ascii codes",int,"");
+ BBTK_OUTPUT(ASCII,Out, "Ascii codes sequence or characters sequence", std::string,"");
BBTK_END_DESCRIBE_BLACK_BOX(ASCII);
}
set concatStrCommand.In1 " "
connect dquote.Out concatStrCommand.In2
connect conf.BinPath concatStrCommand.In3
- connect conf.FileSeparator concatStrCommand.In4
- set concatStrCommand.In5 "bbCreatePackage"
+ connect conf.FileSeparator concatStrCommand.In4
+ set concatStrCommand.In5 "bbCreatePackage"
connect dquote.Out concatStrCommand.In6
- set concatStrCommand.In7 " "
+ set concatStrCommand.In7 " "
new ConcatStrings concatStr
- connect dquote.Out concatStr.In1
- connect concatStrCommand.Out concatStr.In2
- connect dirStr.Out concatStr.In3
+ connect dquote.Out concatStr.In1
+ connect concatStrCommand.Out concatStr.In2
+ connect dirStr.Out concatStr.In3
connect nameStr.Out concatStr.In4
- connect authorStr.Out concatStr.In5
+ connect authorStr.Out concatStr.In5
connect descriptionStr.Out concatStr.In6
- connect dquote.Out concatStr.In7
+ connect dquote.Out concatStr.In7
new ExecSystemCommand command
load wx
define GUIdouble wx
kind DEFAULT_GUI
+ new InputText text
+ input In text.In "Initial value"
+ input Label text.Title "Label"
+ output Out text.Out "Current value"
+ output Widget text.Widget "Widget"
+ output BoxChange text.BoxChange "BoxChange"
+/*
+// IT IS A BAD IDEA TO USE A SLIDER : HOW TO SET THE RANGE AUTOMATICALLY ?
new Slider slider
set slider.Label true
# set slider.ReactiveOnTrack true
output Out div.Out "Current position"
output Widget slider.Widget "Widget"
output BoxChange slider.BoxChange "BoxChange"
+*/
endefine
include vtk/boxes/bbLoadHola
include wxvtk/boxes/bbSimpleSlicer
+
new LoadHola image
new SimpleSlicer viewer
connect image.Out viewer.In
define BasicImageApplication
##
- description "Interface of a 'standard' image application. Displays two images : before/after processing; Offers buttons : open/parameters/run/save/quit. See <a href='../demo/index.html#DemoBasicImageApplication'>DemoBasicImageApplication.bbs</a>. Screenshot : <center><img src='../demo/DemoBasicImageApplication1.png' width=400></center>."
+ description "Interface of a 'standard' image application. Displays two images : before/after processing; Offers buttons : open/parameters/run/save/quit. See <a href='../demo/index.html#DemoBasicImageApplication'>DemoBasicImageApplication.bbs</a>. Screenshot : <center><img src='../demo/DemoBasicImageApplication1.png' width=400></center>."
author "laurent.guigues@creatis.insa-lyon.fr"
category "widget"
##