Skip to content

Commit

Permalink
merging
Browse files Browse the repository at this point in the history
  • Loading branch information
bfrosik committed Jun 16, 2021
2 parents 45aa7cb + abf152c commit e4a74ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cohere/src_cpp/worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ void Reconstruction::Twin()
dim4 dims = data.dims();
std::vector<int> twin_halves = params->GetTwinHalves();
af::array temp = constant(0, dims, u32);
int x_start = (twin_halves[0] == 0) ? 0 : dims[0]/2;
int x_end = (twin_halves[0] == 0) ? dims[0]/2 -1 : dims[0]-1;
int y_start = (twin_halves[1] == 0) ? 0 : dims[1]/2;
int y_end = (twin_halves[1] == 0) ? dims[1]/2 -1 : dims[1]-1;
int x_start = (twin_halves[0] == 0) ? 0 : int(dims[0]/2);
int x_end = (twin_halves[0] == 0) ? int(dims[0]/2 -1) : dims[0]-1;
int y_start = (twin_halves[1] == 0) ? 0 : int(dims[1]/2);
int y_end = (twin_halves[1] == 0) ? int(dims[1]/2 -1) : dims[1]-1;
temp( af::seq(x_start, x_end), af::seq(y_start, y_end), span, span) = 1;
ds_image = ds_image * temp;
// printf("Twin\n");
Expand Down

0 comments on commit e4a74ff

Please sign in to comment.