• Downloads
  • ! Read Me !
  • Μαθήματα
  • Φοιτητικά
  • Τεχνικά Θέματα
  • Συζητήσεις
  • Happy Hour!
  • About THMMY.gr
 V  < 
Search:  
Welcome, Guest. Please login or register.
October 20, 2025, 15:21:05 pm

Login with username, password and session length
Links
  Thmmy.gr portal
   Forum
   Downloads
   Ενεργ. Λογαριασμού
   Επικοινωνία
  
  Χρήσιμα links
   Σελίδα τμήματος
   Βιβλιοθήκη Τμήματος
   Elearning
   Φοιτητικά fora
   Πρόγραμμα Λέσχης
   Πρακτική Άσκηση
   Ηλεκτρονική Εξυπηρέτηση Φοιτητών
   Διανομή Συγγραμμάτων
   Ψηφιακό Καταθετήριο Διπλωματικών
   Πληροφορίες Καθηγητών
   Instagram @thmmy.gr
   mTHMMY
  
  Φοιτητικές Ομάδες
   ACM
   Aristurtle
   ART
   ASAT
   BEAM
   BEST Thessaloniki
   EESTEC LC Thessaloniki
   EΜΒ Auth
   IAESTE Thessaloniki
   IEEE φοιτητικό παράρτημα ΑΠΘ
   SpaceDot
   VROOM
   Panther
  
Πίνακας Ελέγχου
Welcome, Guest. Please login or register.
October 20, 2025, 15:21:05 pm

Login with username, password and session length

Αναζήτηση

Google

THMMY.gr Web
Πρόσφατα
[Τομέας Ηλεκτρονικής] Μαθ...
by ttsengel
[Today at 12:42:51]

Πρακτική Άσκηση ΤΗΜΜΥ 201...
by Διάλεξις
[Today at 12:06:33]

Αποτελέσματα Εξεταστικής ...
by Διάλεξις
[Today at 11:42:56]

[Δομές Δεδομένων] Γενικές...
by Antou@n
[Today at 11:08:40]

Πότε θα βγει το μάθημα; -...
by Tasos Bot
[October 19, 2025, 22:35:04 pm]

Παράταση Δηλώσεων Συμμετο...
by Nikos_313
[October 19, 2025, 19:21:37 pm]

ΟΜΑΔΑ ΠΟΔΟΣΦΑΙΡΟΥ ΗΜΜΥ 1
by Nikos_313
[October 19, 2025, 19:12:26 pm]

Επιλογή βιβλίου για Στοχα...
by Nikos_313
[October 19, 2025, 19:11:19 pm]

[Μετάδοση Θερμότητας] Γεν...
by Nikos_313
[October 19, 2025, 19:05:29 pm]

[Διανεμημένη Παραγωγή] Γε...
by Sôreèn
[October 19, 2025, 17:31:51 pm]

[Τηλεπ. Συστήματα ΙΙΙ] Γε...
by _Trob
[October 19, 2025, 11:56:27 am]

[Θ.Υ.Α.] Επικαιρότητα, απ...
by _Trob
[October 19, 2025, 11:55:45 am]

Τι ακούτε αυτήν τη στιγμή...
by Katarameno
[October 18, 2025, 12:32:46 pm]

[Ηλεκτρονική Ι] Εργαστήρι...
by RivenT
[October 17, 2025, 21:52:37 pm]

[Μεταφορά και Διανομή ΗΕ]...
by chatzikys
[October 17, 2025, 16:52:29 pm]

[Ηλεκτρική Οικονομία] Γεν...
by Mr Watson
[October 17, 2025, 12:24:12 pm]

Δηλώσεις Μαθημάτων Χειμερ...
by chatzikys
[October 17, 2025, 09:30:44 am]

[Γεωηλεκτρομαγνητισμός] Ν...
by theofr
[October 16, 2025, 16:08:03 pm]

[ΣΦ Ηλ-Μηχ] Γενική Συνέλε...
by Aris★
[October 16, 2025, 14:23:53 pm]

[Κεραίες και Διάδοση] Να ...
by supersonic pepega
[October 16, 2025, 13:18:03 pm]
Στατιστικά
Members
Total Members: 10124
Latest: Lil Magnetron
Stats
Total Posts: 1428683
Total Topics: 31838
Online Today: 381
Online Ever: 2093
(April 17, 2025, 08:47:49 am)
Users Online
Users: 41
Guests: 154
Total: 195
Gauss111
cremidhs
kakousios
Vasiliki P
aris123321
stefanos hios
mimaki
Anatolim
chaniotism
chatzikys
giannnnis23
prigians
Anton Pozov
kanavourn
AcDimitri
jimalexoud
Petross
georgino
sassi
thomasdt
le papillon
tasos gourd
Pcsc
akoil
anon
gkaramp
tsaliki
stavros0201
vaiatyr
George_RT
Εμφάνιση

Νέα για πρωτοετείς
Είσαι πρωτοετής;... Καλώς ήρθες! Μπορείς να βρεις πληροφορίες εδώ. Βοήθεια για τους καινούργιους μέσω χάρτη.
Κατεβάστε εδώ το Android Application για εύκολη πρόσβαση στο forum.
Ανεβάζετε τα θέματα των εξετάσεων στον τομέα Downloads με προσοχή στα ονόματα των αρχείων!

Νέα!
  Όταν ανεβάζουμε φωτογραφίες στις Ανακοινώσεις και Έκτακτα νέα, βάζουμε τη μεγαλύτερη πλευρά 400 (width=400 ή height=400 ). π.χ. [img height=400 (κλείνει η αγκύλη) 
THMMY.gr > Forum > Ηλεκτρονικοί Υπολογιστές και Τεχνικά Θέματα > Περί Υπολογιστών... > Software > Προγραμματισμός (C, VB, Delphi, PHP, ASP...) (Moderators: chatzikys, PolarBear) > matlab debug problem
0 Members and 1 Guest are viewing this topic.
Pages: [1] Go Down Print
Author Topic: matlab debug problem  (Read 2036 times)
Fenix
Εθισμένος στο ΤΗΜΜΥ.gr
*****
Gender: Male
Posts: 581


Α μπλου


View Profile
matlab debug problem
« on: September 08, 2006, 13:18:02 pm »

Μπορεί κάποιος να αποσφαλματώσει το παρακάτω πρόγραμμα. Υποτίθεται ότι μετατρέπει μια ακολουθία από jpeg σε avi. Help!!

% JPEG2AVI
%
% create avi-movie from single frames (jpeg-images)

% frames/images:
fpath= 'd:\tmp\';
imglist= dir([fpath 'frame_*.jpg']);            % edit path/filename to match your images' location

% default-parameters:
fps= 25;                                          % frames per second
fname= 'd:\tmp\animation.avi';                  % path/name of movie output file
codec= 'hfyu';                                    % video codec (FOURCC), I use HuffYUV ('hfyu') because it is lossless

% create movie:
for k= 1:length(imglist);
   img= imread([fpath imglist(k).name]);         % get current frame
   m(k)= im2frame(img);
   if rem(k, 100) == 0
      disp([num2str(k) ' frames processed...'])
%      drawnow
   end
end

% create avi:
movie2avi(m, fname, 'compression', codec, 'fps', fps);

% play result:
movie(m, 1, fps)
Logged

TΕΜΠΕΛΑΡΙΑ-ΚΟΠΡΙΤΕΙΣΙΟΝ
Κατάληψη για πάντα!Κατάληψη στα πάνταGood evening London, i would introduse myself but truth to tell, i do not have a  name , you can call me "V". Since mankind's dawn, a handfull of opressors have accepted responsibility over our lives that we should have accepted for ourselves.By doing so they took our power, by doing nothing, we gave it away.We've seen where their way leads, through camps and wars, towards the slaughterhouse.In anarchy there is another way.With anarchy,from rubble comes new life, hope reinstated.They say anarchy's dead, but you see...reports of my death were...exaggerated.Tomorrow Downing Street will be destroyed, tonight you must choose what comes next,lives of our own, or return to chains, choose carefully, and so adieu.
JAs0n-X
Αbsolute ΤΗΜΜΥ.gr
*******
Gender: Male
Posts: 2861


Rhodes [Sattelite image]


View Profile
Απ: matlab debug problem
« Reply #1 on: September 08, 2006, 13:39:44 pm »

Το σφαλμα το βγαζει στην εντολη movie2avi αλλα δεν μπορω τωρα να βρω γιατι. παω για φιλτρα!
Θα το προσπαθησω οταν γυρισω.
κατα τ αλλα μεχρι εκει δουλευει κανονικα δλδ τα frames τα φτιαχνει κανονικα, τα βλεπω που εχουν δημιουργηθει στο workspace.
Logged

J=X
--------------------------------------------
Ο Χριστος πεθανε
Ο Μαρξ πεθανε...
και εγω τελευταια δεν αισθανομαι καλα !
Fenix
Εθισμένος στο ΤΗΜΜΥ.gr
*****
Gender: Male
Posts: 581


Α μπλου


View Profile
Re: matlab debug problem
« Reply #2 on: September 08, 2006, 14:48:23 pm »

Quote
Το σφαλμα το βγαζει στην εντολη movie2avi αλλα δεν μπορω τωρα να βρω γιατι
Ούτε εγώ. :'(
Logged

TΕΜΠΕΛΑΡΙΑ-ΚΟΠΡΙΤΕΙΣΙΟΝ
Κατάληψη για πάντα!Κατάληψη στα πάνταGood evening London, i would introduse myself but truth to tell, i do not have a  name , you can call me "V". Since mankind's dawn, a handfull of opressors have accepted responsibility over our lives that we should have accepted for ourselves.By doing so they took our power, by doing nothing, we gave it away.We've seen where their way leads, through camps and wars, towards the slaughterhouse.In anarchy there is another way.With anarchy,from rubble comes new life, hope reinstated.They say anarchy's dead, but you see...reports of my death were...exaggerated.Tomorrow Downing Street will be destroyed, tonight you must choose what comes next,lives of our own, or return to chains, choose carefully, and so adieu.
fugiFOX
Veteran
Καταστραμμένος
******
Posts: 8962


Fugi+Fox μια νέα μορφή ζωής...


View Profile
Re: matlab debug problem
« Reply #3 on: September 08, 2006, 14:49:45 pm »

Quote from: Fenix on September 08, 2006, 14:48:23 pm
Quote
Το σφαλμα το βγαζει στην εντολη movie2avi αλλα δεν μπορω τωρα να βρω γιατι
Ούτε εγώ. :'(

Επειδή δεν έχω ΜΑΤΛΑΒ μπροστά μου,
τι σφάλμα σου βγάζει;
Logged

http://www.mozilla.org/en-US/firefox/new/
Fenix
Εθισμένος στο ΤΗΜΜΥ.gr
*****
Gender: Male
Posts: 581


Α μπλου


View Profile
Re: matlab debug problem
« Reply #4 on: September 08, 2006, 14:53:16 pm »

??? Error using ==> movie2avi
First input must be a MATLAB movie.

Error in ==> jpeg2av at 27
movie2avi(m, fname, 'compression', codec, 'fps', fps);
Logged

TΕΜΠΕΛΑΡΙΑ-ΚΟΠΡΙΤΕΙΣΙΟΝ
Κατάληψη για πάντα!Κατάληψη στα πάνταGood evening London, i would introduse myself but truth to tell, i do not have a  name , you can call me "V". Since mankind's dawn, a handfull of opressors have accepted responsibility over our lives that we should have accepted for ourselves.By doing so they took our power, by doing nothing, we gave it away.We've seen where their way leads, through camps and wars, towards the slaughterhouse.In anarchy there is another way.With anarchy,from rubble comes new life, hope reinstated.They say anarchy's dead, but you see...reports of my death were...exaggerated.Tomorrow Downing Street will be destroyed, tonight you must choose what comes next,lives of our own, or return to chains, choose carefully, and so adieu.
fugiFOX
Veteran
Καταστραμμένος
******
Posts: 8962


Fugi+Fox μια νέα μορφή ζωής...


View Profile
Re: matlab debug problem
« Reply #5 on: September 08, 2006, 15:04:20 pm »

1. Πες με τις διαστάσεις των πινάκων img,m και τι τύπου είναι.

2. Αυτό τι βγάζει;
movie(m)
Logged

http://www.mozilla.org/en-US/firefox/new/
Pages: [1] Go Up Print
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Scribbles2 | TinyPortal © Bloc | XHTML | CSS
Loading...