শুক্রবার, ৪ অক্টোবর, ২০১৩

C implementation of MATLAB function BWAREAOPEN

In my fourth year project , I have done a C implementaion of bwareaopen. The code worked well . It was written long ago so forgot how it was used. All I remember was that the image was given as a .h file value buffer. I guess if you need it then you can easily figure that out :).
===========================================
//bwareaopen.c

#define TH 95 //65
static int COUNT=0;
static int DELREG[TH][2]={{0},{0}};
static unsigned char Flag;
int X,Y;
/////////////////////////////block by dj////////////////////////////////////////////////////
int indexing(unsigned char *in_img,unsigned char *out_img,int m,int n)
{
if(Flag==0)
return(0);
if(Flag==1){
if(out_img[m*Y+n]==0)
 {
 out_img[m*Y+n]=1;
 if(in_img[m*Y+n]==255)
   {
   
   //printf("%d  %d \n",m,n);
   indexing(in_img,out_img,(m-1),(n-1));
   indexing(in_img,out_img,(m-1),n);
   indexing(in_img,out_img,(m-1),(n+1));
   indexing(in_img,out_img,m,(n-1));
   indexing(in_img,out_img,m,(n+1));
   indexing(in_img,out_img,(m+1),(n-1));
   indexing(in_img,out_img,(m+1),n);
   indexing(in_img,out_img,(m+1),(n+1));
   if(COUNT<=TH){
   DELREG[COUNT][0]=m;
   DELREG[COUNT][1]=n;
}  
   COUNT++;
if(COUNT==TH){
Flag=0;
}
   }
  }
 }
 return(0);
 }

 void bwareaopen_dj(unsigned char *in_img,unsigned char *out_img,int row,int col)
 {

 int i,j,xx;
X=row;
Y=col;

for(i=1;i{
for(j=1;j   {
    if(in_img[i*Y+j]==255 && out_img[i*Y+j]==0 )
    {
Flag=1;
    indexing(in_img,out_img,i,j);

    //printf("end of cluster :::size=%d \n",COUNT);

//area delete if below threshold amount
       if(COUNT       {
       for(xx=0;xx       {
       in_img[(DELREG[xx][0]) *Y +(DELREG[xx][1])]=0;
       }
       }
    COUNT=0;
   
    }
   }
}

 }




বুধবার, ৫ জুন, ২০১৩

Facebook emoji smileys 2013


New Emoji smiley codes for Facebook


Step 1: Download Android Emoji Font if you are seeing boxes in the below list.

Step 2: Install the font.
Step 3: Restart browser and open this blog page again.
Step 4: Now you will see the smileys instead silly boxes.
Step 5: Copy and paste them in facebook chat or comment or post. Even if you are seeing    
              just boxes , you can copy-paste them.



Note: Do not copy all of them at once. Facebook only shows 40 continuous smileys at once. 
================ LIST OF SMILEYS ================

Full list can be found here: Unicode List for Smileys

☀ ☁ ☔ ⛄ ⚡ 🌀 ♥ 💢 💤 💦 💨 💩 💪 ✨ 🔔 ✊ ✋ ✌ 👊 👍 ☝ 👆  👈 👉 👋 👏 👌 👎 👐 

বৃহস্পতিবার, ১৮ আগস্ট, ২০১১

just uploaded a torrent of a collection of TCS Aptitude questions for campus placement.
there are also many HR & TR questions provided by previous succesful employees.


http://thepiratebay.org/torrent/6614282/APTITUDE_Q__amp__A_FOR_CAMPUS_PLACEMENT_2011

বৃহস্পতিবার, ৯ সেপ্টেম্বর, ২০১০

cat preparation
sum of nth number formula DOWNLOAD

রবিবার, ২১ ফেব্রুয়ারি, ২০১০

today i found a wonderful & useful software of mere 9 kb.VIDEO REVERSING SOFTWARE
this video software can reverse any avi format video...here is the link.DOWNLOAD
there are two versions...english version doesnot work....download the french version....
there are just three buttons ...first one parcurei or something like that is browse...
select an avi file...
then next one is reverse button..... a success msg will be shown...the reverse file is saved in same folder of main file with a addition of the word revrse with previous name...
enjoy it....b creative

শুক্রবার, ১২ ফেব্রুয়ারি, ২০১০

...........LEARN SOME COOL JAVASCRIPT...........

I LEARNT SOME COOL JAVASCRIPT TRICKS LIKE

*LORD OF THE WEB

*THE EARTHQUAKE

*MAGIC WAND

*TELEPATHY

atfirst lord of the web: copy and paste the follwing javascript in ur adderss bar and u can edit every thing on that webpage.but all are virtual and u can not save the edited page.



javascript:document.body.contentEditable='true'; document.designMode='on'; void 0


now magic wand :with this javascript u can move all the images in the webpage in a circular motion.but u can not control the motion..




javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);


now earthquake : with dis javascript the browser will experience a tremor.it is not dangerous at all.




javascript:function flood(n) {if (self.moveBy) {for (i = 200; i > 0;i--){for (j = n; j > 0; j--) {self.moveBy(1,i); self.moveBy(i,0);self.moveBy(0,-i); self.moveBy(-i,0); } } }}flood(6);{ var inp = "D-X !msagro na dah tsuj resworb rouY"; var outp = ""; for (i = 0; i <= inp.length; i++) {outp =inp.charAt (i) + outp ; } alert(outp) ;}; reverse

AT LAST THE TELEPATHY : THIS IS THE MOST INTERESTING OF AMONG ALL THESE.WHEN YOU LOG IN IN ANY WEBSITE THE PASSWORD HIDES BEHIND ASTERIX.WHEN U HAVE ENTERED PASSWORD IN ANY SITE PASTE THIS JAVASCRIPTIN EXPLORAR ADDRESS BAR AND BINGO!!! A POP UP WILL TELL U WHAT IS INSIDE THOSE ASTERIX


javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j





PHOTO TRICKS

Yesterday i found a wonderful site. http://www.photofunia.com/ here you can make superb tricks wid your close ups and other photos.you can be a star on the billboard of times square or in the galary of national museum,magazine covers,with a celebrity ,or a beautiful photography.just upload your image.and try different styles.the image quality is very good.