Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Tuesday October 01 2019, @03:28AM   Printer-friendly
from the making-it-up dept.

Arthur T Knackerbracket has found the following story:

Under the right circumstances, Gaussian blurring can make an image seem more clearly defined. [DZL] demonstrates exactly this with a lightweight and compact Gaussian interpolation routine to make the low-resolution thermal sensor data display much better on a small OLED.

[...] used an MLX90640 sensor to create a DIY thermal imager with a small OLED display, but since the sensor is relatively low-resolution at 32×24, displaying the data directly looks awfully blocky. Gaussian interpolation to improve the display looks really good, but it turns out that the full Gaussian interpolation isn’t a trivial calculation write on your own. Since [DZL] wanted to implement it on a microcontroller, the lightweight implementation was born. The project page walks through the details of Gaussian interpolation and how some effective shortcuts were made, so be sure to give it a look.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 0) by Anonymous Coward on Tuesday October 01 2019, @05:58PM (2 children)

    by Anonymous Coward on Tuesday October 01 2019, @05:58PM (#901395)

    for(int i ...

    compiles fine in C++, but not C.

    for loop declarations like this have been part of standard C for over twenty years now. For comparison the first C++ standard was published in 1998, which included similarly new features such as the standard template library.

    I must conclude from your statement that STL code doesn't compile in C++ either, because C++ compilers from the 80s will reject such programs.

  • (Score: 2, Troll) by Coward, Anonymous on Thursday October 03 2019, @03:25AM (1 child)

    by Coward, Anonymous (7017) on Thursday October 03 2019, @03:25AM (#902145) Journal

    Texas Instruments MSP430 and MSP432 compilers (cl430 and armcl) at least make C89 the default for .c files. As far as I'm concerned, C is what compiles without errors on the tools I use, without me having to change options that might break something else. Presumably there is a reason that C99 is not used by default.

    • (Score: 2) by FatPhil on Thursday October 03 2019, @07:42AM

      by FatPhil (863) <{pc-soylent} {at} {asdf.fi}> on Thursday October 03 2019, @07:42AM (#902190) Homepage
      That fact that you use an obsolete version of the language without a feature does not support the unconditional claim that the language does not have that particular feature.
      --
      Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves