• Downloads
  • ! Read Me !
  • Μαθήματα
  • Φοιτητικά
  • Τεχνικά Θέματα
  • Συζητήσεις
  • Happy Hour!
  • About THMMY.gr
 V  < 
Search:  
Welcome, Guest. Please login or register.
June 17, 2025, 07:23:58 am

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.
June 17, 2025, 07:23:58 am

Login with username, password and session length

Αναζήτηση

Google

THMMY.gr Web
Πρόσφατα
Ισραήλ - Ιράν: Πόλεμος στ...
by okan
[Today at 02:33:21]

Τι ακούτε αυτήν τη στιγμή...
by Katarameno
[Today at 02:29:21]

[Οργάνωση Υπολογιστών] Γε...
by RAFI
[June 16, 2025, 22:46:54 pm]

[Σ.Π.Η.Ε.] Γενικές απορίε...
by Nikos_313
[June 16, 2025, 19:49:00 pm]

[ΘΤΠΑ] Γενικές απορίες κα...
by Nikos_313
[June 16, 2025, 16:56:56 pm]

[Εφ.Θερμοδυναμική] Γενικέ...
by Λαμπτήρας
[June 16, 2025, 15:55:08 pm]

[Αρχές Οικονομίας] Να επι...
by _Trob
[June 16, 2025, 13:28:21 pm]

[Σ.Α.Π.Γ.] Εργασία 2025
by Nikos_313
[June 16, 2025, 12:13:45 pm]

Αποτελέσματα Εξεταστικής ...
by Nikos_313
[June 16, 2025, 12:01:53 pm]

Πρακτική Άσκηση ΤΗΜΜΥ 201...
by George_RT
[June 16, 2025, 10:22:18 am]

[Διανεμημένη Παραγωγή] Γε...
by Διάλεξις
[June 16, 2025, 01:56:37 am]

Αντικατάστασης πυκνωτή σε...
by nmpampal
[June 15, 2025, 16:25:56 pm]

[Σ.Π.Η.Ε.] Παλιά θέματα -...
by nmpampal
[June 15, 2025, 06:43:15 am]

Το thmmy.gr στο instagram...
by Mr Watson
[June 15, 2025, 00:50:23 am]

[Λογισμός ΙΙ] Απορίες σε...
by el mariachi
[June 14, 2025, 20:47:07 pm]

ΠΡΟΣΟΧΗ στο ανέβασμα θεμά...
by tzortzis
[June 14, 2025, 16:54:08 pm]

Ρυθμίσεις Θεμάτων της Ανώ...
by el mariachi
[June 14, 2025, 11:56:45 am]

Πότε θα βγει το μάθημα; -...
by Nikos_313
[June 14, 2025, 10:00:55 am]

Αρχείο Ανακοινώσεων [Arch...
by Nikos_313
[June 14, 2025, 09:58:14 am]

Αλέξης Τσίπρας, η επιστρο...
by Yamal
[June 14, 2025, 04:42:23 am]
Στατιστικά
Members
Total Members: 9960
Latest: valco08
Stats
Total Posts: 1426680
Total Topics: 31710
Online Today: 169
Online Ever: 2093
(April 17, 2025, 08:47:49 am)
Users Online
Users: 16
Guests: 84
Total: 100
Giannis Masterio
Mavromati
EiriniGeo
Theoxarhs Bladimiros
AckermanMik
smantzaa
Zaxarenia
Yamal
Theislander
Angelagfb
aggelosiliadis
DarkMagiK06
arisap
Εμφάνιση

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

Νέα!
Για οποιοδήποτε πρόβλημα με register/login, στείλτε email στο contact@thmmy.gr.
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 1910 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...