From 5bba08a063567f9d40408eef8d656b4b974e061c Mon Sep 17 00:00:00 2001 From: Erik Repo <84872500+BiologyTools@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:47:24 +0200 Subject: [PATCH] 5.7.1 --- BioGTK.csproj | 16 ++++++++-------- Source/ImageView.cs | 8 +++++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/BioGTK.csproj b/BioGTK.csproj index 8ff59ad..ee8e10c 100644 --- a/BioGTK.csproj +++ b/BioGTK.csproj @@ -3,25 +3,25 @@ net8.0 Library osx-x64;linux-x64;win-x64;win-arm64;linux-arm64;osx-arm64; - 5.7.0 - 5.7.0 + 5.7.1 + 5.7.1 True BioGTK BioGTK https://github.com/BiologyTools/BioGTK banner.jpg README.md - 5.7.0 + 5.7.1 https://github.com/BiologyTools/BioGTK Biology; GTK; ImageJ; Bio-Formats; Image-Stacks; Microscopy; Whole-Slide-Image; Segment-Anything; SAM; QuPath; GPL-3.0-only True A .NET application & library for editing & annotating various microscopy image formats. Supports all bioformats supported images. Integrates with ImageJ, running ImageJ filters & macro functions. Supports Windows, Linux and Mac. - 5.7.0 + 5.7.1 AnyCPU True AnyCPU - CUDA support for Linux and Mac related bug fixes. + Fix for some pyramidal images not opening. Erik Repo @@ -416,7 +416,7 @@ - + @@ -459,12 +459,12 @@ BioGTK BioGTK com.BioGTK - 5.7.0 + 5.7.1 APPL ???? BioGTKApp bio.icns - 5.7.0 + 5.7.1 NSApplication true enable diff --git a/Source/ImageView.cs b/Source/ImageView.cs index f58e508..3631976 100644 --- a/Source/ImageView.cs +++ b/Source/ImageView.cs @@ -751,13 +751,14 @@ private void InitPreview() else showOverview = true; Bitmap bm = BioImage.GetTile(SelectedImage, SelectedImage.GetFrameIndex(GetCoordinate().Z, GetCoordinate().C, GetCoordinate().T), MacroResolution.Value - 2, 0, 0, SelectedImage.Resolutions[MacroResolution.Value - 2].SizeX, SelectedImage.Resolutions[MacroResolution.Value - 2].SizeY); - ResizeBicubic re = new ResizeBicubic(overview.Width, overview.Height); + ResizeBilinear re = new ResizeBilinear(overview.Width, overview.Height); Bitmap bmp = re.Apply(bm.GetImageRGB()); + bmp.SwitchRedBlue(); overviewImage = bmp; } else { - int lev = SelectedImage.Resolutions.Count - 1; + int lev = SelectedImage.Resolutions.Count-1; double aspx = (double)SelectedImage.Resolutions[lev].SizeX / (double)SelectedImage.Resolutions[lev].SizeY; double aspy = (double)SelectedImage.Resolutions[lev].SizeY / (double)SelectedImage.Resolutions[lev].SizeX; if (SelectedImage.Resolutions[lev].SizeInBytes > 1500000000) @@ -769,8 +770,9 @@ private void InitPreview() showOverview = true; overview = new Rectangle(0, 0, (int)(aspx * 120), (int)(aspy * 120)); Bitmap bm = BioImage.GetTile(SelectedImage, SelectedImage.GetFrameIndex(GetCoordinate().Z, GetCoordinate().C, GetCoordinate().T), lev, 0, 0, SelectedImage.Resolutions[lev].SizeX, SelectedImage.Resolutions[lev].SizeY); - ResizeBicubic re = new ResizeBicubic(overview.Width, overview.Height); + ResizeBilinear re = new ResizeBilinear(overview.Width, overview.Height); Bitmap bmp = re.Apply(bm.GetImageRGB()); + bmp.SwitchRedBlue(); overviewImage = bmp; } ShowOverview = true;