This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Raspberry Pi SDL2 image test with gradient and boundry. | |
- use keyboard buttons to change frames | |
- press F4 to exit | |
- in the boundaries frame, the entire boundry (white) should be visible and as outside as possible | |
to ensure overscan settings is optimal | |
- in the boundaries frame, the central rectangle should be a perfect square | |
- in the next frame, the circle should be perfect circle to ensure proper aspect ratio | |
To test: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pip | |
from subprocess import call | |
for dist in pip.get_installed_distributions(): | |
call("pip install --upgrade " + dist.project_name, shell=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [ res ] = myradon(img) | |
%% Padding | |
center=floor(size(img)/2)+1; | |
padsize=sqrt(size(img,1)^2+size(img,2)^2); | |
padsize=2*floor(padsize/2)+1; | |
padcenter=[ceil(padsize/2),ceil(padsize/2)]; | |
padimg=zeros(padsize); | |
padimg(padcenter(1)-center(1):padcenter(1)+center(1),... | |
padcenter(2)-center(2):padcenter(2)+center(2))... | |
=img(1:2*center+1,1:2*center+1); |