Skip to content

Commit

Permalink
fix absolute windowing
Browse files Browse the repository at this point in the history
  • Loading branch information
mblum94 committed Nov 11, 2023
1 parent 3553e92 commit 1b4c938
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,13 @@ extern void view_refresh(struct view_s* v)
md_select_dims(DIMS, MD_BIT(v->xdim) | MD_BIT(v->ydim), idims, v->dims);

complex float* tmp = md_alloc(DIMS, idims, sizeof(complex float));
md_slice(DIMS, ~(MD_BIT(v->xdim) | MD_BIT(v->ydim)), v->pos, v->dims, tmp, v->data, sizeof(complex float));

long pos[DIMS];
md_copy_dims(DIMS, pos, v->pos);
pos[v->xdim] = 0;
pos[v->ydim] = 0;

md_slice(DIMS, ~(MD_BIT(v->xdim) | MD_BIT(v->ydim)), pos, v->dims, tmp, v->data, sizeof(complex float));

long size = md_calc_size(DIMS, idims);

Expand Down

0 comments on commit 1b4c938

Please sign in to comment.