Skip to content

Commit

Permalink
Renames image_util package to swri_image_util. Refs swri-robotics#231.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Venator committed Sep 25, 2015
1 parent d8759fd commit a7b31ed
Show file tree
Hide file tree
Showing 30 changed files with 128 additions and 128 deletions.
3 changes: 0 additions & 3 deletions image_util/launch/geometry_util.test

This file was deleted.

27 changes: 0 additions & 27 deletions image_util/nodelet_plugins.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 2.8.3)
project(image_util)
project(swri_image_util)

find_package(catkin REQUIRED COMPONENTS
roscpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#include <opencv2/core/core.hpp>

namespace image_util
namespace swri_image_util
{
void RandomColor(int32_t seed, double& r, double& g, double& b);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <tf/transform_datatypes.h>

namespace image_util
namespace swri_image_util
{
typedef cv::Rect_<double> BoundingBox;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>

namespace image_util
namespace swri_image_util
{
/**
* @brief Computes the fundamental matrix for a set of matching points in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>

namespace image_util
namespace swri_image_util
{
/**
* Normalizes the illumination in an image using a normalization image as a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
#include <opencv2/stitching/detail/warpers.hpp>

// RANGER Libraries
#include <image_util/image_matching.h>
#include <swri_image_util/image_matching.h>

namespace image_util
namespace swri_image_util
{
cv::Mat WarpImage(const cv::Mat& image, double roll, double pitch);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>

namespace image_util
namespace swri_image_util
{
class RollingNormalization
{
Expand Down
3 changes: 3 additions & 0 deletions swri_image_util/launch/geometry_util.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<launch>
<test test-name="test_geometry_util" pkg="swri_image_util" type="test_geometry_util" />
</launch>
File renamed without changes.
27 changes: 27 additions & 0 deletions swri_image_util/nodelet_plugins.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<library path="lib/libswri_image_util_nodelets">

<class name="swri_image_util/rotate_image" type="swri_image_util::RotateImageNodelet" base_class_type="nodelet::Nodelet">
<description>
Nodelet to rotate an image a multiple of 90 degrees.
</description>
</class>

<class name="swri_image_util/scale_image" type="swri_image_util::ScaleImageNodelet" base_class_type="nodelet::Nodelet">
<description>
Nodelet to scale an image.
</description>
</class>

<class name="swri_image_util/contrast_stretch" type="swri_image_util::ContrastStretchNodelet" base_class_type="nodelet::Nodelet">
<description>
Nodelet to contrast stretch an image.
</description>
</class>

<class name="swri_image_util/draw_text" type="swri_image_util::DrawTextNodelet" base_class_type="nodelet::Nodelet">
<description>
Nodelet to draw text on an image.
</description>
</class>

</library>
4 changes: 2 additions & 2 deletions image_util/package.xml → swri_image_util/package.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<package format="2">
<name>image_util</name>
<name>swri_image_util</name>
<version>0.0.1</version>
<description>

image_util
swri_image_util

</description>
<author>Kris Kozak</author>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//
// *****************************************************************************

#include <image_util/draw_util.h>
#include <swri_image_util/draw_util.h>

#include <cstdlib>
#include <algorithm>
Expand All @@ -42,7 +42,7 @@

#include <opencv_util/show.h>

namespace image_util
namespace swri_image_util
{
void RandomColor(int32_t seed, double& r, double& g, double& b)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//
// *****************************************************************************

#include <image_util/geometry_util.h>
#include <swri_image_util/geometry_util.h>

#include <cmath>
#include <limits>
Expand All @@ -43,7 +43,7 @@

#include <math_util/constants.h>

namespace image_util
namespace swri_image_util
{
bool Intersects(const BoundingBox& box1, const BoundingBox& box2)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//
// *****************************************************************************

#include <image_util/image_matching.h>
#include <swri_image_util/image_matching.h>

#include <algorithm>
#include <vector>
Expand All @@ -41,7 +41,7 @@

#include <ros/ros.h>

namespace image_util
namespace swri_image_util
{
void GetFundamentalInliers(const cv::Mat points1,
const cv::Mat points2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
* Author: kkozak
*/

#include <image_util/image_normalization.h>
#include <swri_image_util/image_normalization.h>

namespace image_util
namespace swri_image_util
{
void normalize_illumination(cv::Mat NormImage,
cv::Mat SourceImage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
//
// *****************************************************************************

#include <image_util/image_warp_util.h>
#include <swri_image_util/image_warp_util.h>
#include <opencv_util/model_fit.h>

#include <algorithm>

namespace image_util
namespace swri_image_util
{
cv::Mat WarpImage(const cv::Mat& image, double roll, double pitch)
{
Expand Down Expand Up @@ -243,14 +243,14 @@ namespace image_util
double cur_roll = min_roll + dr * roll_idx;

cv::Mat kp1_warped;
image_util::WarpPoints(cur_pitch,
swri_image_util::WarpPoints(cur_pitch,
cur_roll,
image_size,
points1,
kp1_warped);

cv::Mat kp2_warped;
image_util::WarpPoints(cur_pitch,
swri_image_util::WarpPoints(cur_pitch,
cur_roll,
image_size,
points2,
Expand Down Expand Up @@ -401,7 +401,7 @@ namespace image_util
return;
}

image_util::WarpPoints(pitch,
swri_image_util::WarpPoints(pitch,
roll,
cv::Size(im1_.cols, im1_.rows),
pts_in,
Expand Down Expand Up @@ -488,7 +488,7 @@ namespace image_util
GetMeanPitchAndRoll(pitch, roll);
}

image_util::WarpPoints(pitch, roll, image_size, points_in, points_out);
swri_image_util::WarpPoints(pitch, roll, image_size, points_in, points_out);
}

//////////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
#include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/Image.h>
#include <cv_bridge/cv_bridge.h>
#include <image_util/image_normalization.h>
#include <swri_image_util/image_normalization.h>

#include <math_util/math_util.h>

namespace image_util
namespace swri_image_util
{
class ContrastStretchNodelet : public nodelet::Nodelet
{
Expand Down Expand Up @@ -79,7 +79,7 @@ namespace image_util
{
cv_bridge::CvImagePtr cv_image = cv_bridge::toCvCopy(image);

image_util::ContrastStretch(bins_, cv_image->image, cv_image->image, mask_);
swri_image_util::ContrastStretch(bins_, cv_image->image, cv_image->image, mask_);

image_pub_.publish(cv_image->toImageMsg());
}
Expand All @@ -98,7 +98,7 @@ namespace image_util
// Register nodelet plugin
#include <pluginlib/class_list_macros.h>
PLUGINLIB_DECLARE_CLASS(
image_util,
swri_image_util,
contrast_stretch,
image_util::ContrastStretchNodelet,
swri_image_util::ContrastStretchNodelet,
nodelet::Nodelet)
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <cv_bridge/cv_bridge.h>
#include <math_util/math_util.h>

namespace image_util
namespace swri_image_util
{
class DrawTextNodelet : public nodelet::Nodelet
{
Expand Down Expand Up @@ -105,7 +105,7 @@ namespace image_util
// Register nodelet plugin
#include <pluginlib/class_list_macros.h>
PLUGINLIB_DECLARE_CLASS(
image_util,
swri_image_util,
draw_text,
image_util::DrawTextNodelet,
swri_image_util::DrawTextNodelet,
nodelet::Nodelet)
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include <math_util/math_util.h>

namespace image_util
namespace swri_image_util
{
class RotateImageNodelet : public nodelet::Nodelet
{
Expand Down Expand Up @@ -105,7 +105,7 @@ namespace image_util
// Register nodelet plugin
#include <pluginlib/class_list_macros.h>
PLUGINLIB_DECLARE_CLASS(
image_util,
swri_image_util,
rotate_image,
image_util::RotateImageNodelet,
swri_image_util::RotateImageNodelet,
nodelet::Nodelet)
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <cv_bridge/cv_bridge.h>
#include <math_util/math_util.h>

namespace image_util
namespace swri_image_util
{
class ScaleImageNodelet : public nodelet::Nodelet
{
Expand Down Expand Up @@ -101,7 +101,7 @@ namespace image_util
// Register nodelet plugin
#include <pluginlib/class_list_macros.h>
PLUGINLIB_DECLARE_CLASS(
image_util,
swri_image_util,
scale_image,
image_util::ScaleImageNodelet,
swri_image_util::ScaleImageNodelet,
nodelet::Nodelet)
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(int argc, char **argv)

nodelet::M_string remappings;
nodelet::V_string my_argv;
manager.load(ros::this_node::getName(), "image_util/contrast_stretch",
manager.load(ros::this_node::getName(), "swri_image_util/contrast_stretch",
remappings, my_argv);

ros::spin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(int argc, char **argv)

nodelet::M_string remappings;
nodelet::V_string my_argv;
manager.load(ros::this_node::getName(), "image_util/draw_text",
manager.load(ros::this_node::getName(), "swri_image_util/draw_text",
remappings, my_argv);

ros::spin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <opencv2/highgui/highgui.hpp>

// RANGER Libraries
#include <image_util/image_normalization.h>
#include <swri_image_util/image_normalization.h>

class NormalizationImageNode
{
Expand Down Expand Up @@ -122,7 +122,7 @@ class NormalizationImageNode

void generate_and_write_image()
{
cv::Mat norm_im = image_util::generate_normalization_image(image_array_);
cv::Mat norm_im = swri_image_util::generate_normalization_image(image_array_);
if (!norm_im.empty())
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(int argc, char **argv)

nodelet::M_string remappings;
nodelet::V_string my_argv;
manager.load(ros::this_node::getName(), "image_util/rotate_image",
manager.load(ros::this_node::getName(), "swri_image_util/rotate_image",
remappings, my_argv);

ros::spin();
Expand Down
Loading

0 comments on commit a7b31ed

Please sign in to comment.