| | |
How to read Matlab Variabls in C++
![]() |
•
•
Join Date: May 2006
Posts: 1
Reputation:
Solved Threads: 0
I've made an image processing application in Matlab, that reads an
image and stores the width and height of the image in 2 variables, x
and y ....
Now i want to read those 2 variables in another application (a C++
application) that is running with the Matlab application...
Does anyone know how to do so?
image and stores the width and height of the image in 2 variables, x
and y ....
Now i want to read those 2 variables in another application (a C++
application) that is running with the Matlab application...
Does anyone know how to do so?
•
•
Join Date: May 2006
Posts: 35
Reputation:
Solved Threads: 1
You have made an application ???????
its just a 2 line simple comand, example:
1. Image = imread('Image.gif'); % this loads the image matrix
2. [x,y] = size(image); % this stores the dimensions in x and y
now if you want to read them in c++ or any other app. save them as ascii and just call them in your program.
Try visiting the image processing sections of mathworks (matlab's parent company) or kluid (www.kluid.com) its a matlab forum.
b4 : ]
its just a 2 line simple comand, example:
1. Image = imread('Image.gif'); % this loads the image matrix
2. [x,y] = size(image); % this stores the dimensions in x and y
now if you want to read them in c++ or any other app. save them as ascii and just call them in your program.
Try visiting the image processing sections of mathworks (matlab's parent company) or kluid (www.kluid.com) its a matlab forum.
b4 : ]
![]() |
Similar Threads
- problem with MATLAB loop (Legacy and Other Languages)
- MATLAB code help please.... (Legacy and Other Languages)
- Matlab loading file problem (Legacy and Other Languages)
- matlab program help (Legacy and Other Languages)
- Cant read IO.SYS (Windows NT / 2000 / XP)
- About CD(Compact Disk) Writing (C++)
Other Threads in the C++ Forum
- Previous Thread: Linking errors while creating dll using ATL project
- Next Thread: PLZ help me !!
| Thread Tools | Search this Thread |
addition api array base based binary bitmap c++ c/c++ char class classes code coding compile console conversion count delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email embed encryption error erroraftercompilation excel fail-thread file forms fstream function functions game getline givemetehcodez gmail graph gui header homework homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node output parameter pointer problem program programming project python random read recursion reference rpg std::coutwstring string strings temperature template test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets





