Skip to content

Commit

Permalink
Renamed dbil to vil
Browse files Browse the repository at this point in the history
  • Loading branch information
mleotta committed Aug 30, 2010
1 parent 2ca6f94 commit 6ecb5ac
Show file tree
Hide file tree
Showing 17 changed files with 125 additions and 125 deletions.
22 changes: 11 additions & 11 deletions dbpro/filters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@


set(dbpro_filters_sources
dbil_gaussian_blur_process.cxx dbil_gaussian_blur_process.h
dbil_diff_process.cxx dbil_diff_process.h
dbil_morphology_filters.cxx dbil_morphology_filters.h
dbil_convert_filters.h
dbil_math_filters.h
dbil_gauss_filter.h
dbil_sobel_1x3_filter.h
dbil_subpix_edge_filter.h
dbil_grad_sqr_filter.h
dbil_transform3_1_filter.h
dbil_monotone_process.cxx dbil_monotone_process.h
vil_gaussian_blur_process.cxx vil_gaussian_blur_process.h
vil_diff_process.cxx vil_diff_process.h
vil_morphology_filters.cxx vil_morphology_filters.h
vil_convert_filters.h
vil_math_filters.h
vil_gauss_filter.h
vil_sobel_1x3_filter.h
vil_subpix_edge_filter.h
vil_grad_sqr_filter.h
vil_transform3_1_filter.h
vil_monotone_process.cxx vil_monotone_process.h

dbbgm.h

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is dbpro/filters/dbil_convert_filters.h
#ifndef dbil_convert_filters_h_
#define dbil_convert_filters_h_
// This is dbpro/filters/vil_convert_filters.h
#ifndef vil_convert_filters_h_
#define vil_convert_filters_h_

//:
// \file
Expand All @@ -23,7 +23,7 @@

//: Filter to cast the image to a new type
template <class outP>
class dbil_convert_cast_filter : public dbpro_filter
class vil_convert_cast_filter : public dbpro_filter
{
public:
//: Execute this process
Expand All @@ -40,7 +40,7 @@ class dbil_convert_cast_filter : public dbpro_filter

//: Filter to cast the image to a new type
template <class inP>
class dbil_convert_stretch_range_filter : public dbpro_filter
class vil_convert_stretch_range_filter : public dbpro_filter
{
public:
//: Execute this process
Expand All @@ -57,4 +57,4 @@ class dbil_convert_stretch_range_filter : public dbpro_filter

};

#endif // dbil_convert_filters_h_
#endif // vil_convert_filters_h_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This is dbpro/filters/dbil_diff_process.cxx
// This is dbpro/filters/vil_diff_process.cxx

// Copyright Matthew Leotta 2006 - 2010.
// Distributed under the Boost Software License, Version 1.0.
Expand All @@ -8,7 +8,7 @@
//:
// \file

#include "dbil_diff_process.h"
#include "vil_diff_process.h"
#include <dbpro/dbpro_storage.h>
#include <dbpro/dbpro_parameters.h>
#include <vil/vil_image_resource.h>
Expand All @@ -19,7 +19,7 @@

//: Return the default set of parameters for the process
dbpro_parameters_sptr
dbil_diff_process::factory::default_params() const
vil_diff_process::factory::default_params() const
{
// no parameters to add
dbpro_parameters_sptr p = new dbpro_parameters();
Expand All @@ -29,15 +29,15 @@ dbil_diff_process::factory::default_params() const

//: Construct a process from a set of parameters
dbpro_process_sptr
dbil_diff_process::factory::create(const dbpro_parameters_sptr& params) const
vil_diff_process::factory::create(const dbpro_parameters_sptr& params) const
{
return new dbil_diff_process();
return new vil_diff_process();
}


//: Execute this process
dbpro_signal
dbil_diff_process::execute()
vil_diff_process::execute()
{
assert(input_type_id(0) == typeid(vil_image_resource_sptr));
assert(input_type_id(1) == typeid(vil_image_resource_sptr));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is dbpro/filters/dbil_diff_process.h
#ifndef dbil_diff_process_h_
#define dbil_diff_process_h_
// This is dbpro/filters/vil_diff_process.h
#ifndef vil_diff_process_h_
#define vil_diff_process_h_

//:
// \file
Expand All @@ -23,13 +23,13 @@
#include <vcl_string.h>

//: Process that computes absolute difference between images
class dbil_diff_process : public dbpro_filter {
class vil_diff_process : public dbpro_filter {

public:
//: Constructor
dbil_diff_process() {}
vil_diff_process() {}
//: Destructor
virtual ~dbil_diff_process() {}
virtual ~vil_diff_process() {}

class factory : public dbpro_process_factory
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is dbpro/filters/dbil_gauss_filter.h
#ifndef dbil_gauss_filter_h_
#define dbil_gauss_filter_h_
// This is dbpro/filters/vil_gauss_filter.h
#ifndef vil_dbpro_gauss_filter_h_
#define vil_dbpro_gauss_filter_h_

//:
// \file
Expand All @@ -23,11 +23,11 @@

//: Filter to smooth with a Gaussian
template <class srcT, class destT>
class dbil_gauss_filter : public dbpro_filter
class vil_dbpro_gauss_filter : public dbpro_filter
{
public:
//: Constructor
dbil_gauss_filter(double sigma=1.0, bool reuse_output=true)
vil_dbpro_gauss_filter(double sigma=1.0, bool reuse_output=true)
: gp_(sigma), reuse_output_(reuse_output) {}

//: Execute this process
Expand All @@ -52,4 +52,4 @@ class dbil_gauss_filter : public dbpro_filter
};


#endif // dbil_gauss_filter_h_
#endif // vil_dbpro_gauss_filter_h_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This is dbpro/filters/dbil_gaussian_blur_process.cxx
// This is dbpro/filters/vil_gaussian_blur_process.cxx

// Copyright Matthew Leotta 2006 - 2010.
// Distributed under the Boost Software License, Version 1.0.
Expand All @@ -8,7 +8,7 @@
//:
// \file

#include "dbil_gaussian_blur_process.h"
#include "vil_gaussian_blur_process.h"

#include <dbpro/dbpro_parameters.h>
#include <dbpro/dbpro_storage.h>
Expand All @@ -21,7 +21,7 @@

//: Return the default set of parameters for the process
dbpro_parameters_sptr
dbil_gaussian_blur_process::factory::default_params() const
vil_gaussian_blur_process::factory::default_params() const
{
dbpro_parameters_sptr p = new dbpro_parameters();
if(p->add("Gaussian Blur Sigma" , "sigma" , 1.0f ))
Expand All @@ -34,20 +34,20 @@ dbil_gaussian_blur_process::factory::default_params() const

//: Construct a process from a set of parameters
dbpro_process_sptr
dbil_gaussian_blur_process::factory::create(const dbpro_parameters_sptr& params) const
vil_gaussian_blur_process::factory::create(const dbpro_parameters_sptr& params) const
{
float sigma=0;
if( !params->get_value( "sigma" , sigma ) ){
return NULL;
}

return new dbil_gaussian_blur_process(sigma);
return new vil_gaussian_blur_process(sigma);
}


//: Run the process on the current frame
dbpro_signal
dbil_gaussian_blur_process::execute()
vil_gaussian_blur_process::execute()
{
assert(input_type_id(0) == typeid(vil_image_resource_sptr));
vil_image_resource_sptr in_img = input<vil_image_resource_sptr>(0);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is dbpro/filters/dbil_gaussian_blur_process.h
#ifndef dbil_gaussian_blur_process_h_
#define dbil_gaussian_blur_process_h_
// This is dbpro/filters/vil_gaussian_blur_process.h
#ifndef vil_gaussian_blur_process_h_
#define vil_gaussian_blur_process_h_

//:
// \file
Expand All @@ -24,7 +24,7 @@
#include <dbpro/dbpro_process_factory.h>


class dbil_gaussian_blur_process : public dbpro_filter
class vil_gaussian_blur_process : public dbpro_filter
{
public:
class factory : public dbpro_process_factory
Expand All @@ -43,10 +43,10 @@ class dbil_gaussian_blur_process : public dbpro_filter
};

//: Constructor
dbil_gaussian_blur_process(float sigma) : sigma_(sigma) {}
vil_gaussian_blur_process(float sigma) : sigma_(sigma) {}

//: Destructor
virtual ~dbil_gaussian_blur_process(){}
virtual ~vil_gaussian_blur_process(){}


//: Execute this process
Expand All @@ -56,4 +56,4 @@ class dbil_gaussian_blur_process : public dbpro_filter
float sigma_;
};

#endif // dbil_gaussian_blur_process_h_
#endif // vil_gaussian_blur_process_h_
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is dbpro/filters/dbil_grad_sqr_filter.h
#ifndef dbil_grad_sqr_filter_h_
#define dbil_grad_sqr_filter_h_
// This is dbpro/filters/vil_grad_sqr_filter.h
#ifndef vil_grad_sqr_filter_h_
#define vil_grad_sqr_filter_h_

//:
// \file
Expand Down Expand Up @@ -28,11 +28,11 @@
// The input is a 2-plane image containing Ix and Iy
// The output is a 3-plane image containing Ix^2, Iy^2, and Ix*Iy
template <class srcT, class destT>
class dbil_grad_sqr_filter : public dbpro_filter
class vil_grad_sqr_filter : public dbpro_filter
{
public:
//: Constructor
dbil_grad_sqr_filter(bool reuse_output=true)
vil_grad_sqr_filter(bool reuse_output=true)
: reuse_output_(reuse_output) {}

class sqr_functor
Expand Down Expand Up @@ -72,4 +72,4 @@ class dbil_grad_sqr_filter : public dbpro_filter
};


#endif // dbil_grad_sqr_filter_h_
#endif // vil_grad_sqr_filter_h_
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is dbpro/filters/dbil_math_filters.h
#ifndef dbil_math_filters_h_
#define dbil_math_filters_h_
// This is dbpro/filters/vil_math_filters.h
#ifndef vil_math_filters_h_
#define vil_math_filters_h_

//:
// \file
Expand All @@ -24,11 +24,11 @@
//: Filter to cast the image to a new type
// Warning this filter modifies the input data
template <class T>
class dbil_math_scale_filter : public dbpro_filter
class vil_math_scale_filter : public dbpro_filter
{
public:
//: Constructor
dbil_math_scale_filter(double scale) : scale_(scale) {}
vil_math_scale_filter(double scale) : scale_(scale) {}
//: Execute this process
dbpro_signal execute()
{
Expand All @@ -48,11 +48,11 @@ class dbil_math_scale_filter : public dbpro_filter
//: Filter to cast the image to a new type
// Warning this filter modifies the input data
template <class T>
class dbil_math_scale_and_offset_filter : public dbpro_filter
class vil_math_scale_and_offset_filter : public dbpro_filter
{
public:
//: Constructor
dbil_math_scale_and_offset_filter(double scale, double offset)
vil_math_scale_and_offset_filter(double scale, double offset)
: scale_(scale), offset_(offset) {}
//: Execute this process
dbpro_signal execute()
Expand All @@ -70,4 +70,4 @@ class dbil_math_scale_and_offset_filter : public dbpro_filter

};

#endif // dbil_math_filters_h_
#endif // vil_math_filters_h_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This is dbpro/filters/dbil_monotone_process.cxx
// This is dbpro/filters/vil_monotone_process.cxx

// Copyright Matthew Leotta 2006 - 2010.
// Distributed under the Boost Software License, Version 1.0.
Expand All @@ -8,7 +8,7 @@
//:
// \file

#include "dbil_monotone_process.h"
#include "vil_monotone_process.h"
#include <dbpro/dbpro_parameters.h>
#include <dbpro/dbpro_storage.h>
#include <vil/vil_image_resource.h>
Expand All @@ -19,7 +19,7 @@

//: Return the default set of parameters for the process
dbpro_parameters_sptr
dbil_monotone_process::factory::default_params() const
vil_monotone_process::factory::default_params() const
{
dbpro_parameters_sptr p = new dbpro_parameters();
if(p->add( "Red Weight" , "rw", 0.2125f ) &&
Expand All @@ -34,7 +34,7 @@ dbil_monotone_process::factory::default_params() const

//: Construct a process from a set of parameters
dbpro_process_sptr
dbil_monotone_process::factory::create(const dbpro_parameters_sptr& params) const
vil_monotone_process::factory::create(const dbpro_parameters_sptr& params) const
{
float rw=0,gw=0,bw=0;
if( !params->get_value( "rw" , rw ) ||
Expand All @@ -43,14 +43,14 @@ dbil_monotone_process::factory::create(const dbpro_parameters_sptr& params) cons
return NULL;
}

return new dbil_monotone_process(rw,gw,bw);
return new vil_monotone_process(rw,gw,bw);
}



//: Execute this process
dbpro_signal
dbil_monotone_process::execute()
vil_monotone_process::execute()
{
assert(input_type_id(0) == typeid(vil_image_resource_sptr));
vil_image_resource_sptr in_img = input<vil_image_resource_sptr>(0);
Expand Down
Loading

0 comments on commit 6ecb5ac

Please sign in to comment.