Coder Social home page Coder Social logo

alexschultze / optometrika Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caiuspetronius/optometrika

1.0 1.0 2.0 470 KB

Optometrika MATLAB library implements analytical and iterative ray tracing approximation to optical image formation using Snell’s and Fresnel’s laws of refraction and reflection.

License: GNU General Public License v3.0

MATLAB 72.86% M 0.73% Mathematica 26.40%

optometrika's People

Contributors

alexschultze avatar caiuspetronius avatar

Stargazers

 avatar

Watchers

 avatar

optometrika's Issues

Setting up a Lens mirror correctly

Hi,

I'm getting myself familiar with Optometrika at the moment.

I made this simple example for myself. I was assuming to get something on the screen while the light source is not very far out of the optic axis.

startup;
close all;
tic;

bench = Bench;

diam=12;
position=[ 140 0 0 ];
R=7.76;
conic=-0.1;
cornea_front=Lens(position , diam, R, conic, { 'air' 'mirror' } );
bench.append( cornea_front );

% screen
screen = Screen( [ 0 0 0 ], 24, 20, 1200, 1080 );
bench.append( screen );

% create some rays
nrays = 500000;

% create divergent rays
rays_in = Rays( nrays, 'source', [ 0 -15 0 ], [ 1 0.5 0 ], 0.8, 'hexagonal','air',860 );

rays_through = bench.trace( rays_in,0);

%rays_through = bench.trace( rays_in );
bench.draw( rays_through, 'rays' );

figure( 'Name', 'Image on the screen', 'NumberTitle', 'Off' );
imshow( screen.image, [] );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.