• Advertisement

Uzumakis

Member
  • Content count

    19
  • Joined

  • Last visited

Community Reputation

130 Neutral

About Uzumakis

  • Rank
    Member
  1. I am new to Computer vision i am implementing Shot boundry detection algorithm based on histogram difference for key frame extraction the paper i am consulting for algorithm is paper on page # 4 it gives algorithm for detection shot boundry detection using it i am try to get results but no success so far it gives me all the frames becasue their value is less then that of the threshold any help will be appreciated..... My code in matlab... data=VideoReader('C:\Users\Senuch Uzair Tariq\Downloads\Video\house_tour.mpg'); length=data.numberofframes; increment=0; for i=1:1:50 frame1=read(data,i); frame2=read(data,i+1); frame1=rgb2gray(imresize(frame1,[256 256])); frame2=rgb2gray(imresize(frame2,[256 256])); %frame 1 blocks b11=frame1(1:128, 1:128); w11=sum(b11(:))/16384; b12=frame1(129:256, 1:128); w12=sum(b12(:))/16384; b13=frame1(1:128, 129:256); w13=sum(b13(:))/16384; b14=frame1(129:256, 129:256); w14=sum(b14(:))/16384; %frame 2 blocks b21=frame2(1:128, 1:128); b22=frame2(129:256, 1:128); b23=frame2(1:128, 129:256); b24=frame2(129:256, 129:256); %first elements b11h=imhist(b11); b12h=imhist(b12); b13h=imhist(b13); b14h=imhist(b14); %second elements b21h=imhist(b21); b22h=imhist(b22); b23h=imhist(b23); b24h=imhist(b24); %1st blocks difference db1=b11h-b21h; db1=db1.^2; db1=sum(db1)/sum(b11h); %2nd blocks difference db2=b12h-b22h; db2=db2.^2; db2=sum(db2)/sum(b12h); %3rd blocks difference db3=b13h-b23h; db3=db3.^2; db3=sum(db3)/sum(b13h); %4th blocks difference db4=b14h-b24h; db4=db4.^2; db4=sum(db4)/sum(b14h); %difference block sum*weight 1 db1=db1*w11; %difference block sum*weight 2 db2=db2*w12; %difference block sum*weight 3 db3=db3*w13; %difference block sum*weight 4 db4=db4*w14; total=db1+db2+db3+db4; MD=total/length-1; STD=total-MD; STD=STD^2; STD=STD/length-1; STD=sqrt(STD); threshold=MD+1*STD; if(total>=threshold) increment=increment+1; boundry(increment)=i; end end
  2. I am developing a simple website and it need user to login to use it but i am facing a problem of assingning a id to the user which is difficult to guess i cant use auto increment function in database because it is easy to guess so how to sort it out securely. Thanks in advance :)
  3. Database SQL

    Hello Guys, I am facing some problems in implementing my project and the problem is related to remote database connection i wanna connect three computers to one which contains my main database via remote oracle connection but i cant get the hang of it i am using oracle 11g any kinda help will be appreciated thanks
  4. Simple String input problem

    Thanks sir i got your point i will try to avoid these typa mistakes again thanks again.......
  5. Simple String input problem

    [source lang="cpp"]#include "stdafx.h" #include<iostream> #include<conio.h> #include<stdio.h> #include<string> #include<string.h> using namespace std; void main() { string a,b; char dchoice='y'; do{ cout<<"PLease enter the string"<<endl; getline(cin,a); cout<<"Please enter the Second String"<<endl; getline(cin,b); cout<<"String one"<<a<<endl; cout<<"String two"<<b<<endl; cout<<"To continue please enter y"<<endl; cin>>dchoice; }while(dchoice=='y'); }[/source] okay i am trying to take the input of the two string the first time the loop iterates it take's the input accurately while the second time it misses the first input of the string can any one give me a solution and point me where i am going wrong
  6. Sorting a Linked List

    [quote name='Josh Petrie' timestamp='1349982039' post='4989205'] This doesn't address the "sorting" issue at all. [/quote] i only gave the answer to the first statement of his post for getting the simple output the algo for sorting were posted in the prior post thats why i didnt made any lines on it
  7. Sorting a Linked List

    Okay 1st to display out all the elemets in the linked list as you know when you add the list there are basically two portion in the list data containing user data and second portion containing the result of the next node as the last node is null what you need to do is... suppose node *start; node is the basic skelton of the linked list node points to the fist portion While(start!=NULL){ output the data you wanna get and after the output write start=start->next address of the node; } using this you will get the output
  8. Integer multiplication, division

    limitations for a declaration may cause some problems for calculation that is what causing problem with your calculation
  9. Opinion on new boston

    Every one has his own teaching style and for the beginners they need a style that is full of examples that's where he rocks
  10. Opinion on new boston

    lolx well its not like that you can become a game developer in java coming out of blue and just start programming at the professional level you have to start from the basics both as the application developr and the game developer
  11. Opinion on new boston

    Beleive me he is really good i consider him my Second teacher for Java Programming and Application Development hiss toutorials are divided into three Parts 1st Beginner in which there are round about 80 video toutorials 2nd Medium in which he covers some general things 3rd Which is the game development teaching toutorials i was able to step into world of Game Development thanks to him Check on you tube
  12. Good tutorials for learning Java?

    why dont you give a try to the toutorials of the new boston for java i really learnt a lot from his toutorials
  13. OKy if you are new in the video gaming as you know this is the advanced world of 3d games for designing and modling the most famous software these days is i think Maya where you can drew your own character and along with it you can animate it so give it a try toutorils for this engine are availeble too!!!!
  14. Handling many objects

    Acc to the current situation that goes without any doubt that you code will get more and more complex with the increase in the number of the units there will be more loops more array and so on insted of using loops for ur job why dont u give a try to a time class makin and independet method for each class or making a sinlge one and adjusting all the elements acc to that single timer results way easier then that for loops
  15. Need help getting started.

    Well i am recently promoted to the third semester Alhumdurilla!!! Acc to the advanced peroid we were taught java in ecllipse and i think its the best engine right now and easier too becasue of its assistance menu's so i recomend you to use this compiler for java it can be very helpful for you for android too!!!
  • Advertisement