Skip to content

Commit

Permalink
Add CMake support
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoym committed May 17, 2017
1 parent 1fe8e9a commit 1164edc
Show file tree
Hide file tree
Showing 7 changed files with 1,019 additions and 694 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Expand Up @@ -87,4 +87,12 @@ Debug
*.sln
*.user
*.bmp
*.jpg
*.jpg

CMakeFiles
*.vcxproj
*.filters
*.opendb
*.db
CMakeCache.txt
cmake_install.cmake
3 changes: 3 additions & 0 deletions example/CMakeLists.txt
@@ -0,0 +1,3 @@
cmake_minimum_required (VERSION 2.6)
project (rbf)
add_executable(rbf example.cpp)
10 changes: 5 additions & 5 deletions example/example.cpp
@@ -1,7 +1,7 @@
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image.hpp"
#include "stb_image_write.hpp"
#include "stb_image.h"
#include "stb_image_write.h"
#include "../include/rbf.hpp"
#include <stdio.h>
#include <time.h>
Expand All @@ -21,8 +21,8 @@ int main(int argc, char*argv[])
{
printf("Usage:\n");
printf("--------------------------------------------------------------------\n\n");
printf("*.exe: filename_out filename_in (only ppm image) \n");
printf(" sigma_spatial(e.g., 0.03) sigma_range(e.g., 0.1)\n\n");
printf("rbf filename_out filename_in (only support ppm images) \n");
printf(" sigma_spatial(e.g., 0.03) sigma_range(e.g., 0.1)\n\n");
printf("--------------------------------------------------------------------\n");
return(-1);
}
Expand All @@ -36,7 +36,7 @@ int main(int argc, char*argv[])

int width, height, channel;
unsigned char * img = stbi_load(filename_in, &width, &height, &channel, 0);
unsigned char * img_out = nullptr;
unsigned char * img_out = 0;
Timer timer;

timer.start();
Expand Down
151 changes: 0 additions & 151 deletions example/example.vcxproj

This file was deleted.

0 comments on commit 1164edc

Please sign in to comment.