• Downloads
  • ! Read Me !
  • Μαθήματα
  • Φοιτητικά
  • Τεχνικά Θέματα
  • Συζητήσεις
  • Happy Hour!
  • About THMMY.gr
 V  < 
Search:  
Welcome, Guest. Please login or register.
August 05, 2025, 22:37:22 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.
August 05, 2025, 22:37:22 pm

Login with username, password and session length

Αναζήτηση

Google

THMMY.gr Web
Πρόσφατα
Πρακτική Άσκηση ΤΗΜΜΥ 201...
by MajorTom
[August 04, 2025, 21:18:05 pm]

Νέα Δημοκρατία (and Co. I...
by Katarameno
[August 04, 2025, 17:47:56 pm]

Ρύθμιση θερμικού για μοτέ...
by chatzikys
[August 04, 2025, 17:39:31 pm]

Πότε θα βγει το μάθημα; -...
by JTS
[August 04, 2025, 17:10:36 pm]

[Διακριτά Μαθηματικά] Γεν...
by georkala
[August 04, 2025, 17:07:05 pm]

Τι ακούτε αυτήν τη στιγμή...
by Katarameno
[August 04, 2025, 13:26:08 pm]

[Σχεδίαση Συστημάτων VLSI...
by cealexop
[August 04, 2025, 00:58:35 am]

Ρυθμίσεις Θεμάτων της Ανώ...
by nmpampal
[August 03, 2025, 21:29:36 pm]

[Τομέας Ενέργειας] Μαθήμα...
by chatzikys
[August 03, 2025, 13:56:19 pm]

Αποτελέσματα Εξεταστικής ...
by Ma8hths Indou
[August 02, 2025, 17:30:47 pm]

[Τηλεπικοινωνιακά Συστήμα...
by Thanasis_pap
[August 02, 2025, 17:06:37 pm]

Άδεια ασκήσεως επαγγέλματ...
by The Web
[August 02, 2025, 13:25:49 pm]

[Τομέας Ηλεκτρονικής] Μαθ...
by Nikos_313
[August 02, 2025, 09:51:26 am]

Οι μπράβοι του πρύτανη
by Διάλεξις
[August 02, 2025, 01:30:18 am]

[Διανεμημένη Παραγωγή] Γε...
by Διάλεξις
[August 02, 2025, 01:04:15 am]

Ηλεκτρομηχανολογικές Μελέ...
by inverter
[August 01, 2025, 20:35:12 pm]

Πρόγραμμα Σπουδών Ακαδημα...
by PolarBear
[August 01, 2025, 15:03:05 pm]

Aναζωπύρωση των εχθροπραξ...
by Katarameno
[July 31, 2025, 21:15:48 pm]

Καμμένα...!!
by Godat
[July 31, 2025, 21:07:58 pm]

[ΑΝΤΙΣΤΑΣΗ] Ανακοίνωση γι...
by Katarameno
[July 31, 2025, 20:31:30 pm]
Στατιστικά
Members
Total Members: 9985
Latest: ThodorisStav
Stats
Total Posts: 1427662
Total Topics: 31739
Online Today: 148
Online Ever: 2093
(April 17, 2025, 08:47:49 am)
Users Online
Users: 12
Guests: 106
Total: 118
vdelimpalta
chrisdardas
acolak
filkilkis
jimalexoud
Katarameno
Domnious
daphnenik
Xxanth
Fraser
Εμφάνιση

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

Νέα!
Για ανανέωση (ή προσθήκη νέου) avatar, πρέπει η μεγαλύτερη διάσταση της εικόνας να είναι 110 pixels.
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 1958 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...