mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-14 08:17:13 +02:00
Feature/reactivate python bindings (#74)
major changes: - add python bindings for all c++ features except network_io - changes to cross compile on windows,linux and macos - fix bugs with cluster_finder - use Dtype in Frame instead of bitdepth - remove boost::program_options and replace with our implementation - add Transforms class that applies a sequence of functions (c++ or python functions) on a Frame. - remove frame reorder and flip from SubFile.cpp. use Transforms instead - Test clusterFinder and Pedestal results in comparison with slsDetectorCalibration --------- Co-authored-by: Bechir <bechir.brahem420@gmail.com> Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
This commit is contained in:
18
examples/reorder_moench_example.cpp
Normal file
18
examples/reorder_moench_example.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include "aare.hpp"
|
||||
#include "aare/examples/defs.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace aare;
|
||||
|
||||
|
||||
int main() {
|
||||
std::filesystem::path const fpath("/mnt/sls_det_storage/moench_data/testNewFW20230714/cu_half_speed_master_4.json");
|
||||
File file(fpath, "r");
|
||||
|
||||
Frame frame = file.iread(0);
|
||||
std::cout << frame.rows() << " " << frame.cols() << " " << frame.bitdepth() << std::endl;
|
||||
Transforms transforms;
|
||||
transforms.add(Transforms::reorder_moench());
|
||||
transforms(frame);
|
||||
}
|
Reference in New Issue
Block a user