Skip to content

Commit 227f10c

Browse files
authored
Merge pull request #147 from AdaptiveParticles/tmp_install_windows_joel
Tmp install windows joel
2 parents 421662f + 41830fd commit 227f10c

30 files changed

+1029
-1308
lines changed

CMakeLists.txt

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ else()
123123
endif()
124124

125125
# Add submodule GLM (include files only)
126-
include_directories("external/glm")
126+
include_directories(external/glm)
127127

128128
#message(STATUS "---------------------- VARS BEG ---------------------")
129129
#get_cmake_property(_variableNames VARIABLES)
@@ -198,8 +198,9 @@ set(LIBRARY_NAME APR)
198198
include_directories(src)
199199

200200
set(SOURCE_FILES src/io/blosc_filter.c src/io/hdf5functions_blosc.cpp)
201+
set(SOURCE_FILES_RAYCAST src/vis/Camera.cpp src/vis/Object.cpp src/vis/RaytracedObject.cpp src/vis/RaycastUtils.cpp)
201202

202-
add_library(aprObjLib OBJECT ${SOURCE_FILES})
203+
add_library(aprObjLib OBJECT ${SOURCE_FILES} ${SOURCE_FILES_RAYCAST})
203204

204205
if(APR_USE_CUDA)
205206
message(STATUS "APR: Building CUDA for APR")
@@ -262,7 +263,7 @@ if(APR_BUILD_SHARED_LIB)
262263
set_property(TARGET ${SHARED_TARGET_NAME} PROPERTY VERSION ${APR_VERSION_STRING})
263264
set_property(TARGET ${SHARED_TARGET_NAME} PROPERTY SOVERSION ${APR_VERSION_MAJOR})
264265

265-
target_link_libraries(${SHARED_TARGET_NAME} PRIVATE ${HDF5_LIBRARIES} ${TIFF_LIBRARIES} ${CUDA_CUDART_LIBRARY} ${ZLIB_LIBRARIES})
266+
target_link_libraries(${SHARED_TARGET_NAME} PRIVATE ${HDF5_LIBRARIES} ${TIFF_LIBRARIES} ${CUDA_CUDART_LIBRARY} ${ZLIB_LIBRARIES})
266267
if(BLOSC_FOUND)
267268
target_link_libraries(${SHARED_TARGET_NAME} PRIVATE ${BLOSC_LIBRARIES} ${ZLIB_LIBRARIES})
268269
else()
@@ -302,7 +303,7 @@ if(APR_INSTALL)
302303
install(FILES ${PROJECT_BINARY_DIR}/ConfigAPR.h COMPONENT DEV DESTINATION ${INSTALL_INCLUDE_PROJECT_DIR}/io)
303304
install(FILES ${PROJECT_BINARY_DIR}/ConfigAPR.h COMPONENT DEV DESTINATION ${INSTALL_INCLUDE_PROJECT_DIR})
304305

305-
set(APR_TARGETS LibAprTargets)
306+
set(APR_TARGETS LibAPRTargets)
306307
install(TARGETS ${SHARED_TARGET_NAME} ${STATIC_TARGET_NAME}
307308
EXPORT ${APR_TARGETS}
308309
LIBRARY DESTINATION ${INSTALL_LIB_DIR}
@@ -313,18 +314,18 @@ if(APR_INSTALL)
313314
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/apr.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/apr.pc" @ONLY)
314315
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/apr.pc" DESTINATION lib/pkgconfig COMPONENT DEV)
315316

316-
# AprTargets
317+
# APRTargets
317318
set(APR_NAMESPACE ${LIBRARY_NAME}::)
318-
export( EXPORT ${APR_TARGETS} FILE "${CMAKE_CURRENT_BINARY_DIR}/AprTargets.cmake" NAMESPACE ${APR_NAMESPACE})
319-
install(EXPORT ${APR_TARGETS} FILE AprTargets.cmake NAMESPACE ${APR_NAMESPACE} DESTINATION ${INSTALL_CMAKE_DIR})
319+
export( EXPORT ${APR_TARGETS} FILE "${CMAKE_CURRENT_BINARY_DIR}/APRTargets.cmake" NAMESPACE ${APR_NAMESPACE})
320+
install(EXPORT ${APR_TARGETS} FILE APRTargets.cmake NAMESPACE ${APR_NAMESPACE} DESTINATION ${INSTALL_CMAKE_DIR})
320321

321-
# AprConfig
322-
configure_file(cmake/AprConfig.cmake "${CMAKE_CURRENT_BINARY_DIR}/AprConfig.cmake" @ONLY)
323-
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/AprConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/AprConfigVersion.cmake DESTINATION ${INSTALL_CMAKE_DIR} COMPONENT DEV)
322+
# APRConfig
323+
configure_file(cmake/AprConfig.cmake "${CMAKE_CURRENT_BINARY_DIR}/APRConfig.cmake" @ONLY)
324+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/APRConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/APRConfigVersion.cmake DESTINATION ${INSTALL_CMAKE_DIR} COMPONENT DEV)
324325

325-
# AprConfigVersion
326+
# APRConfigVersion
326327
include(CMakePackageConfigHelpers)
327-
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/AprConfigVersion.cmake" VERSION ${APR_VERSION_STRING} COMPATIBILITY AnyNewerVersion)
328+
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/APRConfigVersion.cmake" VERSION ${APR_VERSION_STRING} COMPATIBILITY AnyNewerVersion)
328329

329330
# uninstall
330331
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake-uninstall.cmake.in"

benchmarks/BenchPipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ inline void bench_apr_pipeline(APR& apr,ParticleData<partsType>& parts,int num_r
6666

6767
PixelData<partsType> pipelineImage;
6868

69-
APRReconstruction::interp_img(apr,pipelineImage,parts);
69+
APRReconstruction::reconstruct_constant(apr,pipelineImage,parts);
7070

7171
APRConverter<partsType> aprConverter;
7272

cmake/AprConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include("${CMAKE_CURRENT_LIST_DIR}/AprTargets.cmake")
1+
include("${CMAKE_CURRENT_LIST_DIR}/APRTargets.cmake")

examples/Example_apr_deconvolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int main(int argc, char **argv) {
8585
// reconstruct pixel image from gradient
8686
timer.start_timer("reconstruct pixel image");
8787
PixelData<float> output_image;
88-
APRReconstruction::interp_img(apr, output_image, output);
88+
APRReconstruction::reconstruct_constant(apr, output_image, output);
8989
timer.stop_timer();
9090

9191
timer.start_timer("write pixel image to file");

examples/Example_apr_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int main(int argc, char **argv) {
8585
// reconstruct pixel image from gradient
8686
timer.start_timer("reconstruct pixel image");
8787
PixelData<float> output_image;
88-
APRReconstruction::interp_img(apr, output_image, output);
88+
APRReconstruction::reconstruct_constant(apr, output_image, output);
8989
timer.stop_timer();
9090

9191
timer.start_timer("write pixel image to file");

examples/Example_compress_apr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int main(int argc, char **argv) {
125125
//writes the piece-wise constant reconstruction of the APR to file for comparison
126126
if(options.output_tiff) {
127127
PixelData<uint16_t> img;
128-
APRReconstruction::interp_img(apr,img, parts);
128+
APRReconstruction::reconstruct_constant(apr,img, parts);
129129
std::string output = options.directory + name + "_compressed.tif";
130130
TiffUtils::saveMeshAsTiff(output, img);
131131
}

examples/Example_compute_gradient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int main(int argc, char **argv) {
7070
// reconstruct pixel image from gradient
7171
timer.start_timer("reconstruct pixel image");
7272
PixelData<float> gradient_magnitude_image;
73-
APRReconstruction::interp_img(apr, gradient_magnitude_image, output);
73+
APRReconstruction::reconstruct_constant(apr, gradient_magnitude_image, output);
7474
timer.stop_timer();
7575

7676
timer.start_timer("write pixel image to file");

examples/Example_denoise.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ bool denoise_example(cmdLineOptionsDenoise& options){
7070
// reconstruct noisy input image by piecewise constant interpolation
7171
timer.start_timer("pc interp");
7272
PixelData<uint16_t> recon_pc;
73-
APRReconstruction::interp_img(apr,recon_pc, parts);
73+
APRReconstruction::reconstruct_constant(apr,recon_pc, parts);
7474
timer.stop_timer();
7575

7676
// save reconstructed input as TIFF
@@ -100,7 +100,7 @@ bool denoise_example(cmdLineOptionsDenoise& options){
100100

101101
// reconstruct image from denoised particles by piecewise constant interpolation
102102
timer.start_timer("pc interp");
103-
APRReconstruction::interp_img(apr,recon_pc, parts_denoised);
103+
APRReconstruction::reconstruct_constant(apr,recon_pc, parts_denoised);
104104
timer.stop_timer();
105105

106106
// save denosied image as TIFF

examples/Example_get_apr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int runAPR(cmdLineOptions options) {
122122
if(aprConverter.par.output_steps){
123123
particle_intensities.fill_with_levels(apr);
124124
PixelData<uint16_t> level_img;
125-
APRReconstruction::interp_img(apr,level_img,particle_intensities);
125+
APRReconstruction::reconstruct_constant(apr,level_img,particle_intensities);
126126
TiffUtils::saveMeshAsTiff(options.output_dir + "level_image.tif",level_img);
127127
}
128128

examples/Example_ray_cast.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,7 @@ int main(int argc, char **argv) {
9393
///
9494
/////////////
9595

96-
//apr_raycaster.perform_raycast(apr,apr.particles_intensities,views,[] (const uint16_t& a,const uint16_t& b) {return std::max(a,b);});
97-
98-
ReconPatch rp;
99-
rp.level_delta = -1;
100-
apr_raycaster.scale_down = pow(2,rp.level_delta);
101-
102-
// apr_raycaster.perform_raycast_patch(apr,parts,treeData,views1,rp,[] (const uint16_t& a,const uint16_t& b) {return std::max(a,b);});
103-
104-
105-
apr_raycaster.perform_raycast_patch(apr,parts,treeData,views,rp,[] (const uint16_t& a,const uint16_t& b) {return std::max(a,b);});
96+
apr_raycaster.perform_raycast(apr,parts,views,[] (const uint16_t& a,const uint16_t& b) {return std::max(a,b);});
10697

10798
//////////////
10899
///

0 commit comments

Comments
 (0)