Skip to content

Instantly share code, notes, and snippets.

Saket Dandawate hex007

  • LA, California
Block or report user

Report or block hex007

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hex007
hex007 / tests.cpp
Last active Nov 18, 2017
Program to test Pi's overscan, aspect ratio, and color settings
View tests.cpp
/*
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:
View python_package_upgrade.py
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
View myradon.m
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);
You can’t perform that action at this time.