Post Your Answer
Store images in MATLAB
Is it possible to store images in a single array in MATLAB?
All Answers (2 Answers In All)
By Pradeep Sharma Answered 5 years ago
Yes. It is definitely possible to store images in single array or matrix in MATLAB. myFolder = ‘C:Documents and SettingsyourUserNameMy DocumentsMy Pictures’; if ~isdir(myFolder) errorMessage = sprintf(‘Error: The following folder does not exist:n%s’, myFolder); uiwait(warndlg(errorMessage)); return; end filePattern = fullfile(myFolder, ‘*.jpg’); jpegFiles = dir(filePattern); for k = 1:length(jpegFiles) baseFileName = jpegFiles(k).name; fullFileName = fullfile(myFolder, baseFileName); fprintf(1, ‘Now reading %sn’, fullFileName); imageArray = imread(fullFileName); imshow(imageArray); % Display image. drawnow; % Force display to update immediately. end
By Fern G Answered 5 years ago
If you want to store images in cell array, use these: clc; clear all; close all; arr = cell(25,77); % Create Cell array k = 1; % get ‘zero’ 25 image cell array img_folder = (‘E:4th yearProjectImagesChardatabaseSample0’); % Enter name folder and its path filenames = dir(fullfile(img_folder,’*.jpg’)); % Read all image with specified extantion Total_image = numel(filenames); % Count total image for i=1:Total_image j = 1; for j=1:77 f = fullfile(img_folder,filenames(i).name); % Stroe ith image path Output = imread(f); % read image Output = imresize(Output,[11 7]); Output = im2bw(Output); Output = reshape(Output,[],77); % cell array divide by ’77’ Output = im2double(Output); arr{k,j} = Output(1,j); % get all pixel value of ‘Output’ image end k = k+1; end
asked at 05 Dec, 2019 08:10 in Matlab By Rajiv Bhatia
asked at 25 Apr, 2019 07:18 in Matlab By Prithvi Patel
asked at 25 Jan, 2019 08:11 in Matlab By Shiran Khan
asked at 19 Jan, 2019 12:34 in Matlab By Rajshree Tamang
asked at 22 Aug, 2018 11:06 in Matlab By Mayank Singh
asked at 04 Aug, 2018 09:34 in Matlab By Nancy Trivedi
asked at 03 Aug, 2018 10:00 in Matlab By Ritu Gupta
asked at 03 Aug, 2018 06:52 in Matlab By Ritu Gupta
asked at 28 Jul, 2018 10:59 in Matlab By Naman Bhalla
asked at 29 Jun, 2018 12:09 in Matlab By Aditi Sharma
717141 Bhagirathi Bisht
Query regarding image processing
653579 Sonam Bhatia
749727 Muhammad Umar Farooq
Disagreements between my supervisor and me
773354 Anju Mehera
716455 Muhammad Umar Farooq
Difference between multivariate and bivariate analysis
848493 Lalit Mudra
697387 Rahul Kohli
710364 Raghav V
Peer reviews are reliable or not?
678528 Priyanshu Rathore
- Angular
- Research Objectives
- PhD Admissions
- Action Research
- APA Style
- Annexure I Journals
- Academic Writing
- Abstract
- Architecture
- Architecture
- Assignments
- Bibliography
- Case Study
- Citations
- Concept Matrix
- Concept Paper
- Conceptual Framework
- Conclusion
- Content Analysis
- Corrections
- Cross Sectional Study
- CST Software
- PhD Data
- Data analysis
- Data Collection
- Data Analysis
- Descriptive Statistics
- Design
- Discussion
- Dissertation
- Draft
- Editing
- Empirical Paper
- Engineering
- English literature
- Ethnobotanical
- Ethnographic Method
- Excel
- Executive Summary
- Financial analysis
- Formatting
- Grammarly
- Grounded theory
- Guidelines
- HR
- Hypothesis
- Impact Factor Journals
- Interview
- Introduction
- Java
- Journal
- LabVIEW
- Latex
- Literary Analysis Techniques
- Literature
- Literature Review
- Longitudinal study
- Management
- Material for study
- Matlab
- Methodology
- MLA Format
- MLA Style
- Objectives
- Peer Review
- Paper Publication
- PhD
- PhD Funding
- PhD Interview
- PhD planner
- PhD Thesis
- PhD Management
- Pilot Study
- Plagiarism Check
- Presentation
- Psychology
- Qualitative Data
- Quantitative methods
- Qualitative Method
- Qualitative research
- Qualitative Research
- Quantitative research
- Questionnaire
- References
- Referencing
- Report Writing
- Research design
- Research Methodology
- Research methods
- Research objective
- Research Paper
- Research philosophy
- Research Problem
- Research Proposal
- Research Question
- Research Hypotheses
- Review Paper
- Revisions
- Sample
- SCI Journals
- Secondary Data Analysis
- Secondary Source
- Software
- Software for Plagiarism
- SPSS
- SQL
- SSCI Journals
- STATA
- Statistical Tests
- Structural Analysis
- SWOT Analysis
- Synopsis
- Technical Writing
- Thematic Analysis
- Thomson Reuters
- Topic
- Topic Selection
- Turnitin
- University Guidelines
- Variables
- Writing
- Writing Editing
- Testtag
- Dissertation
- Simulation
- Coding
- Scientific Manuscript
- Algorithms
- Design
- Software
- Statistical Analysis
- Analysis
- Supervising
- Parametric Test
- Parameter
- Submission
- Base Paper
- Interpretation
- Dissipation Systems
- Data Science
- Machine Learning
- Hybrid Electric
- Power Control
- ArcGiS
- Spatial Analysis
- Switching
- Simulink
- Artificial Intelligence
- Deep Learning
- Panel Data
- Reliability
- Pandemic
- COVID-19
- HRM
- Ansys
- Multiphase Flow Modelling
- Remote Sensing Software
- ENVI
- Qualitative Research
- Thinking
- Likert Scale
- Scale Construction
- Sample Size
- Methodology
- Questionnaire
- Regression
- Linear Equation
- Linear Programming
- Wireless Communications
- Digital Communications
- Wireless Network
- Publications
- Publications
- Scientific Research
- Convergent Variant
- Conferences
- Conferences
- Abstracts
- Bioinformatics
- Differential Gene
- Survey
- Somatic Cell Nuclear Transfer
- Research Design
- Writing
- Microsoft Windows
- Student
- Circuits
- Digital
- Serum
- Plasma
- Polymerase Chain Reaction
- Solar Collector
- Heat Transfer
- Radiation
- API
- Python
- Research Paper
- Design Thinking
- Training
- Psychology
- Python
- R Programming
- Primer
- Journal Impact Factor
- Conferences
- Big Data
- Cloud Computing
- Human Behavior
- Structural Equation Modelling
- SEM Analysis
- Applied Mathematics
- Dynamical Systems
- Statistics
- Blockchain
- Testing
- Publications
- Amos
- EViews
- NS2
- NS3
- Data Analysis Tool
- Conceptual Framework
- CST Software
- Dissertation
- Indroduction
- Structural Analysis
- Renewable Energy
- Medicine
- AI Model
- science experiments
- FUTURE TECH