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 for Selecting and Visualizing an Image, Study Guides, Projects, Research of Control Systems

This matlab script allows users to input the number of an image stored in a 3d array and visualize the selected image by processing its rgb values. The script also displays the area, vertical and horizontal dimensions of the selected image.

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 for Selecting and Visualizing an Image and more Study Guides, Projects, Research Control Systems in PDF only on Docsity! function dtbVISUAL % VISUALIZATOR OF THE IMAGES clc fprintf('\n'); load xdtbIMPORT % RGBp n ro co sr sc A vk vkk vkkk memc mems whos fprintf('\n'); fprintf('number of images inside 3D box: '); disp(n); n2=input('to select number of the image: '); si=size(memc); cont=0; for d=1:si(1,2), if memc(n2,d)>0, cont=cont+1; end end j=0; kont=0; for j=1:cont, for r=1:301, if vk(n2,j)==r, for g=1:301, if vkk(n2,j)==g, for b=1:301, if vkkk(n2,j)==b, for p=1:mems(j,memc(n2,j),n2), IM(ro(p,j,n2),co(p,j,n2),1)=r-1; IM(ro(p,j,n2),co(p,j,n2),2)=g-1; IM(ro(p,j,n2),co(p,j,n2),3)=b-1; kont=kont+1; disp(kont); end end end end end end end end IM=uint8(IM); figure; image(IM); docsity.com
Docsity logo



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