PSP-CRF-master

所属分类:图形图像处理
开发工具:Python
文件大小:2613KB
下载次数:1
上传日期:2020-03-21 12:43:16
上 传 者paoding
说明:  利用CRF对FCN语义分割结果进行后端优化,效果好
(Using CRF to optimize the back end of FCN semantic segmentation results, the effect is good)

文件列表:
CMakeLists.txt (469, 2018-06-19)
eval.py (1783, 2018-06-19)
include (0, 2018-06-19)
include\SLIC.h (7758, 2018-06-19)
include\cnpy.h (9906, 2018-06-19)
include\densecrf.h (8171, 2018-06-19)
include\opencv_lbp.h (390, 2018-06-19)
lib (0, 2018-06-19)
lib\libSLIC.a (153182, 2018-06-19)
lib\libcnpy.a (194248, 2018-06-19)
lib\libdensecrf.a (186836, 2018-06-19)
lib\libopencv_lbp.a (7216, 2018-06-19)
main.cpp (21134, 2018-06-19)
src (0, 2018-06-19)
src\SLICO (0, 2018-06-19)
src\SLICO\1.jpg (99863, 2018-06-19)
src\SLICO\CMakeLists.txt (226, 2018-06-19)
src\SLICO\build (0, 2018-06-19)
src\SLICO\build\CMakeCache.txt (11990, 2018-06-19)
src\SLICO\build\CMakeFiles (0, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2 (0, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CMakeCCompiler.cmake (1443, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CMakeCXXCompiler.cmake (1587, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CMakeDetermineCompilerABI_C.bin (8587, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CMakeDetermineCompilerABI_CXX.bin (8600, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CMakeSystem.cmake (402, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CompilerIdC (0, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CompilerIdC\CMakeCCompilerId.c (11935, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CompilerIdC\a.out (8683, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CompilerIdCXX (0, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CompilerIdCXX\CMakeCXXCompilerId.cpp (11845, 2018-06-19)
src\SLICO\build\CMakeFiles\2.8.12.2\CompilerIdCXX\a.out (8692, 2018-06-19)
src\SLICO\build\CMakeFiles\CMakeDirectoryInformation.cmake (631, 2018-06-19)
src\SLICO\build\CMakeFiles\CMakeOutput.log (25334, 2018-06-19)
src\SLICO\build\CMakeFiles\Makefile.cmake (3226, 2018-06-19)
src\SLICO\build\CMakeFiles\Makefile2 (5791, 2018-06-19)
src\SLICO\build\CMakeFiles\Progress (0, 2018-06-19)
src\SLICO\build\CMakeFiles\Progress\1 (5, 2018-06-19)
... ...

Purpose: Numpy offers the save method for easy saving of arrays into .npy and savez for zipping multiple .npy arrays together into a .npz file. cnpy lets you read and write to these formats in C++. The motivation comes from scientific programming where large amounts of data are generated in C++ and analyzed in Python. Writing to .npy has the advantage of using low-level C++ I/O (fread and fwrite) for speed and binary format for size. The .npy file header takes care of specifying the size, shape, and data type of the array, so specifying the format of the data is unnecessary. Loading data written in numpy formats into C++ is equally simple, but requires you to type-cast the loaded data to the type of your choice. Installation: Default installation directory is /usr/local. To specify a different directory, add -DCMAKE_INSTALL_PREFIX=/path/to/install/dir to the cmake invocation in step 4. 1. get cmake at www.cmake.org 2. create a build directory, say $HOME/build 3. cd $HOME/build 4. cmake /path/to/cnpy 5. make 6. make install Using: To use, #include"cnpy.h" in your source code. Compile the source code mycode.cpp as g++ -o mycode mycode.cpp -L/path/to/install/dir -lcnpy Description: There are two functions for writing data: npy_save, npz_save. There are 3 functions for reading. npy_load will load a .npy file. npz_load(fname) will load a .npz and return a dictionary of NpyArray structues. npz_load(fname,varname) will load and return the NpyArray for data varname from the specified .npz file. Note that NpyArray allocates char* data using new[] and *will not* delete the data upon the NpyArray destruction. You are responsible for delete the data yourself. The data structure for loaded data is below. Data is loaded into a a raw byte array. The array shape and word size are read from the npy header. You are responsible for casting/copying the data to its intended data type. struct NpyArray { char* data; std::vector shape; unsigned int word_size; }; See example1.cpp for examples of how to use the library. example1 will also be build during cmake installation.

近期下载者

相关文件


收藏者