Skip to content

Instantly share code, notes, and snippets.

View hex007's full-sized avatar

Saket Dandawate hex007

  • Bangalore, India
View GitHub Profile
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);
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
@hex007
hex007 / tests.cpp
Last active November 18, 2017 03:12
Program to test Pi's overscan, aspect ratio, and color settings
/*
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: