Skip to content

Commit

Permalink
- switch rescale algorithm for spectrum images
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Nov 8, 2024
1 parent bab0acf commit 056ee73
Show file tree
Hide file tree
Showing 5 changed files with 6,651 additions and 9 deletions.
2 changes: 1 addition & 1 deletion currentGitHash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6f0c4a3ea81e10b49a47bac6f16917e9d669ee66
bab0acff62b8f04252bb4d4cffb7999f51a537cc
2 changes: 1 addition & 1 deletion hi_backend/backend/currentGit.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PREVIOUS_HISE_COMMIT "6f0c4a3ea81e10b49a47bac6f16917e9d669ee66"
#define PREVIOUS_HISE_COMMIT "bab0acff62b8f04252bb4d4cffb7999f51a537cc"
4 changes: 2 additions & 2 deletions hi_scripting/scripting/api/ScriptingApiObjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7637,8 +7637,8 @@ Image ScriptingObjects::ScriptFFT::getRescaledAndRotatedSpectrum(bool getOutput,
if(!useFallback || !fft->isFallbackEngine())
reportScriptError("You must use the fallback engine if you want to dump FFT images");

auto thisImg = getSpectrum(getOutput).rescaled(numFreqPixels, numTimePixels, Graphics::ResamplingQuality::highResamplingQuality);

auto thisImg = gin::applyResize(getSpectrum(getOutput), numFreqPixels, numTimePixels);
Spectrum2D::testImage(thisImg, false, "after rescaling");

Image rotated(Image::PixelFormat::ARGB, thisImg.getHeight(), thisImg.getWidth(), false);
Expand Down
Loading

0 comments on commit 056ee73

Please sign in to comment.