Giter VIP home page Giter VIP logo

ivr's People

Contributors

franciscovargas avatar kyankova avatar

Watchers

 avatar  avatar  avatar

ivr's Issues

RGB2HSV

inspect what difference it makes to threshold in hsv as opposed to rgb

RGB normalize an image

(r',g',b') = (r/(r+g+b),g/(r+g+b),b/(r+g+b)) where r',g','b are normalized. You must construct or find an algorithm which performs this on an image.

histograms for each normalized colour channel

After colour normalization has been carried out, histograms (and smoothed histograms, i.e convolved with 1D Gaussian) must be produced and saved as calibration tools for threshold. Here is a small snippet showing how this could be approached:

> [hegiht width] = size(normalized_image);
> red_vec = reshape(normalized_image(:,:,1), 1, height*width);
> green_vec = reshape(normalized_image(:,1,:), 1, height*width);
> blue_vec = reshape(normalized_image(:,:,1), 1, height*width);
> red = dohist(red_vec,1);
> green = dohist(green_vec,1);
> blue = dohist(blue_vec,1);
% create 1D gaussian mask and convolve
> gauss = fspecial('gaussian',[1,5],6);
> smooth_hist = conv(gauss, red);
>  plot(smooth_hist);

Testing

Test the new changes (gray scale autocalibration and cropping) in all images.

taking new pictures

Must take new pictures in the lab for the assigned surfaces in order to test:
-Lighting
-Positioning and angling of capture
-Surfaces

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.