how can i display Cluster1[0][n]in .dat file?Below is my code..
...
for(int j=0;j<DataHeight;j++)
{
for(int i=0;i<DataWidth;i++)
{
Data[i][j]=(unsigned char)(((float)dataconv[j][i]-min)/(max-min)*255);
if (Data[i][j]==170)
{
Cluster1[0][n]=Data[i][j];
n++;
}
}
}
hi..i'm very new in this programming area and actually i don't understand what are you trying to say.
where must i put the new function?did i have to add another button for the new function?how can i call this new function?
this is my final year project and i really need someone's help.thanks...
my code below display data i the form of:
4
2
65
3
..
what can i do to make it looks like:
Data[0][0]=4
Data[0][1]=2
Data[0][3]=65
....until Data[500][500].
// papar Cluster.dat
TStringList* papar = new TStringList;
for (int b=0; b<Ydim + Sty; b++)
for (int a=0; a<Xdim + Stx...
hi..
i have image edge detection function in button 2 and thinning function in button 3.how can i make so that my thinning function in button 3 can continue from button 2 (so it can thinning the edge image not the original image) without combine it in one button?below is my code..
void...
i'm doing image processing project and i need the segmentation program to get data from the image(shape).as far as i'm concern,i need to make coordinate to the image and get the data according to the coordinate but i'm not sure how to do it and what algorithm to use.i just finish doing thinning...
i'm trying to use Zhang Suen thinning algorithm to thin my image but the result is the same before i use the thinning algorithm.can somebody help?
void __fastcall TForm1::Button2Click(TObject *Sender)
{
//THINNING
int count,count2,x,y;
int num_transitions ;
int transitions ;
int...
hi,everyone....
i want to delete the pixels if the Pixels[col][row]=0.Below is my code.What's wrong with my code?
thanks..
if ((Byte)Image1->Canvas->Pixels[col][row] == 0)
delete[];
thanks for your help.i've tried your code about the multidimensional array and it works. but, the result is in "ûûúûûäGDCDKŒèøúüû" instead of displaying value in byte(0->255) as before i use your code.
i've tried the code that you gave to me and can compile and load my image but i got this error in my file.h at this line...
ThrowIfOutOfRange(idx); // Should Range-checking be
optional to avoid overhead ??
what is that mean?
correction for the code posted earlier..
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int DataWidth = Image1->Picture->Width;
int DataHeight = Image1->Picture->Height;
for (int y=0;y<DataHeight;y++)
for (int x=0;x<DataWidth;x++)
Data[y][x] =...
how can i organize one dimensional array of data into multidimensional array.
here is my code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int DataWidth = Image1->Picture->Width;
int DataHeight = Image1->Picture->Height;
for (int y=0;y<DataHeight;y++)
for (int...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.