Git Product home page Git Product logo

computer-vision-coursera's People

Contributors

mrinmoihossain avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

computer-vision-coursera's Issues

udpated code week 2

RGB = imread('image1.jpg');
%Read the image
img = imread('image1.jpg');
%Get the size (rows and columns) of the image
[r,c] = size(img);
rr=r/3;
%Wrire code to split the image into three equal parts and store them in B, G, R channels
B=img([1,1,c,rr-1]);
G=img([1,1rr+1,c,rr-1]);
R=img([1,2
rr+1,c,rr]);
%concatenate R,G,B channels and assign the RGB image to ColorImg variable
ColorImg = cat(3,R,G,B);
imshow(ColorImg)

week 2 assignment

img = imread('image.jpg');

%Get the size (rows and columns) of the image
[r,c] = size(img);
rr=r/3;
%Wrire code to split the image into three equal parts and store them in B, G, R channels

B=imcrop(img,[1,1,c,rr]);
G=imcrop(img,[1,1rr,c,rr]);
R=imcrop(img,[1,2
rr,c,rr]);

%concatenate R,G,B channels and assign the RGB image to ColorImg variable
ColorImg(:,:,1) = R;
ColorImg(:,:,2) = G;
ColorImg(:,:,3) = B;
ColorImg = cat(3, R, G, B);
imshow(ColorImg)

error i am getting is

Validating Blue Channel Image - B
Variable B must be of size [341 400]. It is currently of size [342 400]. Check where the variable is assigned a value.
similarly for green and red channel.

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.