21ucs164 Cvfa
21ucs164 Cvfa
% roll no : 21UCS164
% Color Detection
image = imread('temp.png'); % Load your image
imshow(image);
title('Original Image');
1
Published with MATLAB® R2024b
2
% name : RAJA THAKUR SODANI
% roll no : 21UCS164
for t = 0:0.1:10
clf;
rectangle('Position', [mod(t, 10), 5, 1, 1], 'FaceColor', 'blue'); % Jerry
rectangle('Position', [mod(t+3, 10), 7, 1.5, 1], 'FaceColor', '#808080');
% Tom (gray color)
1
Published with MATLAB® R2024b
2
% name : RAJA THAKUR SODANI
% roll no : 21UCS164
1
Published with MATLAB® R2024b
2
% name : RAJA THAKUR SODANI
% roll no : 21UCS164
image = imread('temp.png');
grayImage = rgb2gray(image);
image = double(grayImage);
1
Published with MATLAB® R2024b
2
% name : RAJA THAKUR SODANI
% roll no : 21UCS164
% Parameters
windowSize = 3; % Window size for corner detection
threshold = 10000; % Adjust this based on your image
1
Published with MATLAB® R2024b