Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/lingqi/WaveOpticsBrdf
04 July 2024, 03:03:05 UTC
  • Code
  • Branches (2)
  • Releases (0)
  • Visits
Revision 0a0235db65428ba442f3e82f66624a20763c22a4 authored by lingqi on 27 August 2018, 23:58:35 UTC, committed by GitHub on 27 August 2018, 23:58:35 UTC
Update README.md
1 parent 4fcdc7d
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • refs/heads/milos
    • 0a0235db65428ba442f3e82f66624a20763c22a4
    No releases to show
  • 0b0846c
  • /
  • gaborkernel.h
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
  • snapshot
origin badgerevision badge
swh:1:rev:0a0235db65428ba442f3e82f66624a20763c22a4
origin badgedirectory badge
swh:1:dir:0b0846cd2bc8096b88a119d6f72662d305a8df43
origin badgecontent badge
swh:1:cnt:686b4b3c21e47e86fb71aa4834d20c8ce12c3c6d
origin badgesnapshot badge
swh:1:snp:65cc530390ac97b31a9b0991f655e0a9132608a9

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 0a0235db65428ba442f3e82f66624a20763c22a4 authored by lingqi on 27 August 2018, 23:58:35 UTC
Update README.md
Tip revision: 0a0235d
gaborkernel.h
/*

Copyright 2018 Lingqi Yan

This file is part of WaveOpticsBrdf.

WaveOpticsBrdf is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

WaveOpticsBrdf is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with WaveOpticsBrdf.  If not, see <https://www.gnu.org/licenses/>.

*/

#ifndef GABOR_KERNEL_H
#define GABOR_KERNEL_H

#define SCALE_FACTOR 2.0
// #define SCALE_FACTOR 2.35482004503

#include "helpers.h"

class GaborKernel {
public:
    GaborKernel() {}
    GaborKernel(Vector2 mu_, Float sigma_, Vector2 a_, comp C_ = comp(Float(1.0), Float(0.0))) :
                mu(mu_), sigma(sigma_), a(a_), C(C_) {}
    comp eval(Vector2 s);
    comp xform(Vector2 u);
public:
    comp C;
    Vector2 mu;
    Float sigma;
    Vector2 a;
};

class GaborKernelPrime {
public:
    GaborKernelPrime() {}
    GaborKernelPrime(Vector2 mu_, Float sigma_, Float cInfo_, Vector2 aInfo_) :
                        mu(mu_), sigma(sigma_), cInfo(cInfo_), aInfo(aInfo_) {}
    GaborKernel toGaborKernel(Float lambda);
    Vector2 getFFTCenter(Float lambda);     // -a = -aInfo / lambda.
    Float getFFTWidth();                    // 1 / (2 pi sigma).
public:
    Float cInfo;
    Vector2 mu;
    Float sigma;
    Vector2 aInfo;
};

#endif
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API