Skip to content

Commit

Permalink
Added copyright header
Browse files Browse the repository at this point in the history
  • Loading branch information
eboigne committed Dec 30, 2021
1 parent e39713d commit 55e8d2a
Show file tree
Hide file tree
Showing 14 changed files with 560 additions and 2 deletions.
3 changes: 1 addition & 2 deletions math_and_2Dexample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"cells": [
{
"cell_type": "markdown",
"id": "ef76c597",
"metadata": {},
"source": [
"## TV definition\n",
Expand Down Expand Up @@ -186,7 +185,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.8.5"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
43 changes: 43 additions & 0 deletions pytv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# /*-----------------------------------------------------------------------*\
# | |
# | _____ _______ __ __ |
# | | __ \ |__ __| \ \ / / |
# | | |__) | _ _ | | \ \ / / |
# | | ___/ | | | | | | \ \/ / |
# | | | | |_| | | | \ / |
# | |_| \__/ | |_| \/ |
# | __/ | |
# | |___/ |
# | |
# | |
# | Author: E. Boigne |
# | |
# | Contact: Emeric Boigne |
# | email: emericboigne@gmail.com |
# | Department of Mechanical Engineering |
# | Stanford University |
# | 488 Escondido Mall, Stanford, CA 94305, USA |
# | |
# |-------------------------------------------------------------------------|
# | |
# | This file is part of the pyTV package. |
# | |
# | License |
# | |
# | Copyright(C) 2021 E. Boigne |
# | pyTV 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. |
# | |
# | pyTV 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 pyTV. If not, see <http://www.gnu.org/licenses/>. |
# | |
# /*-----------------------------------------------------------------------*/


from . import tv_2d_CPU
from . import tv_CPU
from . import tv_operators_CPU
Expand Down
43 changes: 43 additions & 0 deletions pytv/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# /*-----------------------------------------------------------------------*\
# | |
# | _____ _______ __ __ |
# | | __ \ |__ __| \ \ / / |
# | | |__) | _ _ | | \ \ / / |
# | | ___/ | | | | | | \ \/ / |
# | | | | |_| | | | \ / |
# | |_| \__/ | |_| \/ |
# | __/ | |
# | |___/ |
# | |
# | |
# | Author: E. Boigne |
# | |
# | Contact: Emeric Boigne |
# | email: emericboigne@gmail.com |
# | Department of Mechanical Engineering |
# | Stanford University |
# | 488 Escondido Mall, Stanford, CA 94305, USA |
# | |
# |-------------------------------------------------------------------------|
# | |
# | This file is part of the pyTV package. |
# | |
# | License |
# | |
# | Copyright(C) 2021 E. Boigne |
# | pyTV 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. |
# | |
# | pyTV 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 pyTV. If not, see <http://www.gnu.org/licenses/>. |
# | |
# /*-----------------------------------------------------------------------*/


import numpy as np
import time
from pytv import *
Expand Down
43 changes: 43 additions & 0 deletions pytv/tv_2d_CPU.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# /*-----------------------------------------------------------------------*\
# | |
# | _____ _______ __ __ |
# | | __ \ |__ __| \ \ / / |
# | | |__) | _ _ | | \ \ / / |
# | | ___/ | | | | | | \ \/ / |
# | | | | |_| | | | \ / |
# | |_| \__/ | |_| \/ |
# | __/ | |
# | |___/ |
# | |
# | |
# | Author: E. Boigne |
# | |
# | Contact: Emeric Boigne |
# | email: emericboigne@gmail.com |
# | Department of Mechanical Engineering |
# | Stanford University |
# | 488 Escondido Mall, Stanford, CA 94305, USA |
# | |
# |-------------------------------------------------------------------------|
# | |
# | This file is part of the pyTV package. |
# | |
# | License |
# | |
# | Copyright(C) 2021 E. Boigne |
# | pyTV 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. |
# | |
# | pyTV 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 pyTV. If not, see <http://www.gnu.org/licenses/>. |
# | |
# /*-----------------------------------------------------------------------*/


import numpy as np

def tv_hybrid(img, mask = []):
Expand Down
43 changes: 43 additions & 0 deletions pytv/tv_2d_GPU.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# /*-----------------------------------------------------------------------*\
# | |
# | _____ _______ __ __ |
# | | __ \ |__ __| \ \ / / |
# | | |__) | _ _ | | \ \ / / |
# | | ___/ | | | | | | \ \/ / |
# | | | | |_| | | | \ / |
# | |_| \__/ | |_| \/ |
# | __/ | |
# | |___/ |
# | |
# | |
# | Author: E. Boigne |
# | |
# | Contact: Emeric Boigne |
# | email: emericboigne@gmail.com |
# | Department of Mechanical Engineering |
# | Stanford University |
# | 488 Escondido Mall, Stanford, CA 94305, USA |
# | |
# |-------------------------------------------------------------------------|
# | |
# | This file is part of the pyTV package. |
# | |
# | License |
# | |
# | Copyright(C) 2021 E. Boigne |
# | pyTV 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. |
# | |
# | pyTV 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 pyTV. If not, see <http://www.gnu.org/licenses/>. |
# | |
# /*-----------------------------------------------------------------------*/


import numpy as np
import torch

Expand Down
43 changes: 43 additions & 0 deletions pytv/tv_CPU.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# /*-----------------------------------------------------------------------*\
# | |
# | _____ _______ __ __ |
# | | __ \ |__ __| \ \ / / |
# | | |__) | _ _ | | \ \ / / |
# | | ___/ | | | | | | \ \/ / |
# | | | | |_| | | | \ / |
# | |_| \__/ | |_| \/ |
# | __/ | |
# | |___/ |
# | |
# | |
# | Author: E. Boigne |
# | |
# | Contact: Emeric Boigne |
# | email: emericboigne@gmail.com |
# | Department of Mechanical Engineering |
# | Stanford University |
# | 488 Escondido Mall, Stanford, CA 94305, USA |
# | |
# |-------------------------------------------------------------------------|
# | |
# | This file is part of the pyTV package. |
# | |
# | License |
# | |
# | Copyright(C) 2021 E. Boigne |
# | pyTV 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. |
# | |
# | pyTV 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 pyTV. If not, see <http://www.gnu.org/licenses/>. |
# | |
# /*-----------------------------------------------------------------------*/


import numpy as np
import pytv.tv_2d_CPU

Expand Down
43 changes: 43 additions & 0 deletions pytv/tv_GPU.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# /*-----------------------------------------------------------------------*\
# | |
# | _____ _______ __ __ |
# | | __ \ |__ __| \ \ / / |
# | | |__) | _ _ | | \ \ / / |
# | | ___/ | | | | | | \ \/ / |
# | | | | |_| | | | \ / |
# | |_| \__/ | |_| \/ |
# | __/ | |
# | |___/ |
# | |
# | |
# | Author: E. Boigne |
# | |
# | Contact: Emeric Boigne |
# | email: emericboigne@gmail.com |
# | Department of Mechanical Engineering |
# | Stanford University |
# | 488 Escondido Mall, Stanford, CA 94305, USA |
# | |
# |-------------------------------------------------------------------------|
# | |
# | This file is part of the pyTV package. |
# | |
# | License |
# | |
# | Copyright(C) 2021 E. Boigne |
# | pyTV 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. |
# | |
# | pyTV 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 pyTV. If not, see <http://www.gnu.org/licenses/>. |
# | |
# /*-----------------------------------------------------------------------*/


import numpy as np
import torch
import pytv.tv_2d_GPU
Expand Down
Loading

0 comments on commit 55e8d2a

Please sign in to comment.