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

Login with username, password and session length

Αναζήτηση

Google

THMMY.gr Web
Πρόσφατα
[Ηλεκτρικά Κυκλώματα ΙΙ] ...
by Nikos_313
[Today at 19:20:58]

Οδηγοί ΕΛΕΜΚΟ
by Nikos_313
[Today at 19:15:13]

Των συνειρμών το παίγνιο....
by Μπιγκόνια
[December 03, 2025, 14:49:59 pm]

[ΣΦ ΗΛ-ΜΗΧ] Υποστηρίζουμε...
by Aris★
[December 03, 2025, 14:45:45 pm]

Τι ακούτε αυτήν τη στιγμή...
by tartoufos
[December 03, 2025, 14:17:34 pm]

Απορίες σχετικά με την εξ...
by tony stank
[December 03, 2025, 12:56:55 pm]

[Ηλεκτρονική Ι] Εργαστήρι...
by Mr Watson
[December 03, 2025, 08:20:37 am]

Πρόγραμμα χειμερινής εξετ...
by Nikos_313
[December 02, 2025, 21:29:14 pm]

[Ευφυή και Προσαρμοστικά ...
by Μπιγκόνια
[December 02, 2025, 11:46:29 am]

Υπερτιμημένες για σας ται...
by tartoufos
[December 02, 2025, 03:06:39 am]

[Δομές Δεδομένων] Γενικές...
by Nikos_313
[December 01, 2025, 23:42:46 pm]

[ΣΦ ΗΛ-ΜΗΧ] ΓΕΝΙΚΗ ΣΥΝΕΛΕ...
by cvakadimas
[December 01, 2025, 15:15:03 pm]

[Σύγχρονα Ενεργειακά Συστ...
by Nikos_313
[December 01, 2025, 14:27:02 pm]

[Λογική Σχεδίαση] Γενικές...
by tony stank
[December 01, 2025, 10:51:13 am]

Ρώτα κάτι τον επόμενο
by RivenT
[November 30, 2025, 17:12:33 pm]

[ΣΑΕ Ι] Γενικές απορίες κ...
by sassi
[November 29, 2025, 14:29:04 pm]

[Πυρηνική Τεχνολογία] Γεν...
by chatzikys
[November 27, 2025, 18:09:47 pm]

[Ηλεκτρονική Ι] Απορίες σ...
by tony stank
[November 27, 2025, 15:32:50 pm]

[Λογισμός ΙΙ] Γενικές απο...
by koutrisk
[November 27, 2025, 15:27:59 pm]

Αν μπορούσα να αλλάξω το ...
by RivenT
[November 27, 2025, 14:15:37 pm]
Στατιστικά
Members
Total Members: 10211
Latest: akoutouc
Stats
Total Posts: 1429455
Total Topics: 31872
Online Today: 426
Online Ever: 2093
(April 17, 2025, 07:47:49 am)
Users Online
Users: 22
Guests: 190
Total: 212
Fraser
Haralampos
tinidou
Dimos Bachlas
athena_apo
antontsiorvas
georgino
Nikos_313
johnnypap
thenoface
eplysia
bit11
Alexandros28
antichry
artemissamaras_
akmilios
mimaki
femanak
sassi
stefanos hios
Εμφάνιση

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

Νέα!
Για αλλαγή του public name σας, επικοινωνήστε με έναν από τους Admins.
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 2070 times)
Fenix
Εθισμένος στο ΤΗΜΜΥ.gr
*****
Gender: Male
Posts: 581


Α μπλου


View Profile
matlab debug problem
« on: September 08, 2006, 12: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, 12: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, 13: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, 13:49:45 pm »

Quote from: Fenix on September 08, 2006, 13: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, 13: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, 14: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...