Skip to content

Commit

Permalink
Update to latest imc, where it is possible to load very large images
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRace committed Nov 16, 2022
1 parent 32f518b commit 77b8e7b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
23 changes: 18 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/imc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ fn process_classifier_results(
);

let pixel_annotation = commands
.spawn_bundle(SpriteBundle {
.spawn(SpriteBundle {
transform: Transform::from_translation(Vec3::new(
(-mcd_acquisition.width() as f32 * 0.5)
+ region.x as f32
Expand Down Expand Up @@ -1061,8 +1061,8 @@ fn load_imc(
let image_task = thread_pool.spawn(async move {
let image = panorama_image.as_rgba8()?;

let tile_width = 512;
let tile_height = 512;
let tile_width = 1024;
let tile_height = 1024;

Ok(ToTileImage {
image,
Expand Down

0 comments on commit 77b8e7b

Please sign in to comment.