Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Image Processing MATLAB Script: Extracting Image Coordinates, Study Guides, Projects, Research of Control Systems

This matlab script reads in three files (rgbp, rgbs, rgbsh) and uses a user-input image number to identify and extract the corresponding image coordinates based on color values in the rgb and hsv planes. The script outputs the image with the extracted coordinates highlighted.

Typology: Study Guides, Projects, Research

2011/2012

Uploaded on 07/30/2012

badsha
badsha 🇮🇳

4.3

(27)

229 documents

1 / 2

Toggle sidebar

Related documents


Partial preview of the text

Download Image Processing MATLAB Script: Extracting Image Coordinates and more Study Guides, Projects, Research Control Systems in PDF only on Docsity! function dtbSTi % VISUALIZATOR OF THE IMAGES clc fprintf('\n'); load xdtbT load xdtbSv load xdtbSh whos s=size(RGBp); kont=0; fprintf('\n'); fprintf('number of images inside 3D box: '); disp(n); n2=input('to select number of the image: '); for cd=1:s(1,1), % 301 for dc=1:s(1,2), % 301 if RGBp(cd,dc,n2)>-1, kont=kont+1; end end end cont=0; for kkk=1:301, % blue for g=1:s(1,1), % 301 for b=1:s(1,2), % 301 if cont<=kont, % stopper if RGBh(g,b,n2)==kkk, % horizontal, of the columns for k=1:301, % red if RGBp(g,b,n2)==k-1, % time, of the profundity for kk=1:301, % green if RGBv(g,b,n2)==kk, % vertical, of the rows im(g,b,1)=k-1; im(g,b,2)=kk-1; im(g,b,3)=kkk-1; cont=cont+1; disp(cont); end end end end end end end end docsity.com
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved