15,895,370 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Pixel86 (Top 13 by date)
Pixel86
17-Jan-14 1:45am
View
Any Specific Algorithms @Peter Leow
Pixel86
1-Jun-12 2:26am
View
Hello enhzflep, The input image itself is 8 bit gray scale image and if i want to detect edge i need more contrast edges ( i enhanced the image ( Histogram equalization ) but the image still looks weird - even we could not see in our human eye )
Here you can find my enhanced images :
http://postimage.org/image/yuv4a30ch/
http://postimage.org/image/5s4hbkqyb/
Pixel86
29-May-12 1:11am
View
ok , sorry
Pixel86
28-May-12 22:23pm
View
DWORD dwBytesperline -> i am not sure about this parameter , please explain me.
i am using 8 bit image ( 1400 * 1024 ) - so how much it would come for DWORD dwBytesperline??
Pixel86
8-May-12 21:49pm
View
Sorry for that..
Its Gerber format. used for Printed circuit board format.
Pixel86
2-May-12 23:27pm
View
yeah i did ..the problem was leaving Whitespaces after \ ..i directly copied from the code and pasted it ,,
Pixel86
1-May-12 22:58pm
View
Thanks for the reply ..
Here is the link for grevView ( RS-274x ) source, but i don know how to start and where to start..
is the url given below is right one with source code ??
http://kicad.xor-gate.org/testing/Documentation/doxygen/html/dir_3559e86f1ec6b59cc1d78e9d3be5d525.html
Pixel86
30-Apr-12 3:15am
View
Thanks i have already downloaded this, but i don't know how to use this on my project ..
via XML Parsing ?
How to do, i am new to these area..
Pixel86
26-Apr-12 1:40am
View
its Open Multi-Processing - for Parallel processing instead of thread we can use this..
Pixel86
25-Apr-12 2:26am
View
yeah, thanks i will do..
Pixel86
25-Apr-12 1:46am
View
yeah i tried; could not able to find the corresponding library files to access this ..
Do you know ???
Pixel86
24-Apr-12 0:07am
View
Deleted
Hello,
this is the code i am using for loading 8 bit image.
I am using bmpfile.h and .cpp ...
I don know what mistake i have done ,, please someone can help me out from this issue....
Here is the main code ..
Collapse | Copy Code
int nWidth = 149 ;
int nHeight = 126;
unsigned char * pInputBuffer = new unsigned char[nWidth*nHeight]();
Collapse | Copy Code
Loading 8 bit bmp image ..
pInputBuffer = bmp.LoadBMP("D:\\MyWorkSpace\\Clipboard01.bmp",nWidth,nHeight,8);
// Calling Vertical Flipping here
bmp.VertFlipBuf(pInputBuffer,nWidth,nHeight);
Collapse | Copy Code
BYTE * BMPFile::LoadBMP(char* fileName,
__int16 width,
__int16 height, int bitdepth)
{
BITMAP inBM;
BYTE m1,m2;
long filesize;
short res1,res2;
long pixoff;
long bmisize;
long compression;
unsigned long sizeimage;
long xscale, yscale;
long colors;
long impcol;
BYTE *outBuf=NULL;
// for safety
width=0; height=0;
bitdepth=0;
// init
m_bytesRead=0;
FILE *fp;
fp=fopen(fileName,"rb");
if (fp==NULL)
{
return NULL;
}
else
{
long rc;
rc=fread((BYTE *)&(m1),1,1,fp); m_bytesRead+=1;
if (rc==-1) {fclose(fp); return NULL;}
rc=fread((BYTE *)&(m2),1,1,fp); m_bytesRead+=1;
if (rc==-1)
if ((m1!='B') || (m2!='M'))
{
fclose(fp);
return NULL;
}
////////////////////////////////////////////////////////////////////////////
//
// read a ton of header stuff
rc=fread((long *)&(filesize),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((int *)&(res1),2,1,fp); m_bytesRead+=2;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((int *)&(res2),2,1,fp); m_bytesRead+=2;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(pixoff),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(bmisize),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(inBM.bmWidth),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(inBM.bmHeight),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((int *)&(inBM.bmPlanes),2,1,fp); m_bytesRead+=2;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((int *)&(inBM.bmBitsPixel),2,1,fp); m_bytesRead+=2;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(compression),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(sizeimage),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(xscale),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(yscale),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(colors),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
rc=fread((long *)&(impcol),4,1,fp); m_bytesRead+=4;
if (rc!=1) { fclose(fp); return NULL;}
bitdepth = inBM.bmBitsPixel;
////////////////////////////////////////////////////////////////////////////
// i don't do RLE files
if (compression!=BI_RGB)
{
fclose(fp);
return NULL;
}
if (colors == 0)
{
colors = 1 << inBM.bmBitsPixel;
}
////////////////////////////////////////////////////////////////////////////
// read colormap
//RGBQUAD *colormap = NULL;
switch (inBM.bmBitsPixel)
{
case 24:
break;
// read pallete
case 1:
case 4:
case 8:
colormap = new RGBQUAD[colors];
if (colormap==NULL)
{
fclose(fp);
return NULL;
}
int i;
for (i=0;i<colors;i++)> {
BYTE r,g,b, dummy;
rc=fread((BYTE *)&(b),1,1,fp);
m_bytesRead++;
if (rc!=1)
{
delete [] colormap;
fclose(fp);
return NULL;
}
rc=fread((BYTE *)&(g),1,1,fp);
m_bytesRead++;
if (rc!=1)
{
delete [] colormap;
fclose(fp);
return NU
Pixel86
23-Apr-12 19:31pm
View
Yes, i am using MFC..
Show More