|
hi i am doing project on implantation of embedded image processing opraters using matlab. so i am genration c code for two instruction of matlab function imread() and imrotate() for imread of bmp image i have maked my c code now need c code of matlab function imroate() so can burn on microcontrroler
|
|
|
|
|
Did you read the forum guidelines [^]?
You should be specific, for instance what kind of rotation do you need (arbitrary angle, simply 90 degrees steps,...)? What's your bitmap format? What code did you make?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hi i am just doing processing on image like just reading image by imread() and after that rotating a image by imrotate() may be an angle thita in matlab so i need this c code of this matlab function which i can burn on micro controller
|
|
|
|
|
hi i am just doing processing on image like just reading image by imread() and after that rotating a image by imrotate() may be an arbitrary angle in matlab so i need this c code of this matlab function which i can burn on micro controller. and i have make c code for imread of bmp image this c code can read bmp image now need c code which can rotate this image
|
|
|
|
|
Will you PLEASE stop spamming the forum? There is no need to reply twice to every message.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Is your CPMRU working well? Mine seems broken. Moreover I cannot get a piece of useful info from his posts.
BTW: After 'data mining' we should introduce a new discipline: 'data guessing' (and I suppose we need more 'intelligence' for this 'business').
BTW2: my 'data guessing engine alpha' was suspiciously attracted by the OP name 'ashish'... (you know, it's alpha)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Thursday, June 25, 2009 7:52 AM
|
|
|
|
|
I read the thread start and I said to myself: "I must not reply on this one. It looks dangerously close to be a Liquid Nitrogen candidate".
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hence you need to a function to rotate an image by an arbitrary angle. This is the maximum info you provided so far. I can just give you this link [^]. Good luck.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hi i am doing project on implementation of embedded image processing operaters using matlab. so i am generating c code for two instruction of matlab function imread() and imrotate(). for imread of bmp image i have make my c code now need c code of matlab function imroate() so can burn on microcontrroler
imread()for image read in matlab
imrotat() for image rotate in matlab
|
|
|
|
|
Hi Friends,
I need to show zoom combo box in print preview window like Microsoft power point print preview.
I removed zoom in and zoom out buttons.
I dervied my class i.e.
class CPrintPreviewView : public CPreviewView
{
void SetScaledSize(UINT nPage);
}
void CPrintPreviewView ::SetScaledSize(UINT nPage)
{
switch(m_nZoomState)
{
case ZOOM_25:
pRatio->cx = 25
pRatio->cy = 100;
break;
case ZOOM_400:
pRatio->cx = 400
pRatio>cy = 100;
break;
}
}
I inserted the zoom combobox and added zoom levels from
25% to 400%, as user selects value in cobmobox, I update zoom ratio and call DoZoom function.
But there is some calculation problem.... ??? I dont know what ??
But if i keep zoom in & zoom out buttons and click zoom out button once
and then use combo , there is no problem.
Everthing is fine.
Can you please provide me some code snippet.
Thanks,
Subhash Madhukar
|
|
|
|
|
There is a bit of guessing going on here, but I would think that the OnSelChange for the combo box would need to call:
SetZoomState(requiredZoomLevel, 0, CPoint(0, 0));
where requiredZoomLevel maps to the the correct zoom level of:
0 for totally zoomed out
1 for next zoom level etc...
If you vote me down, my score will only get lower
|
|
|
|
|
Hi,
i have a Slider ctrl and im calling SetRange(1,3,TRUE) and when im trying to drag the slider from one position to the other ..ie OnHScroll(UINT nSBCode,UINT nPos,CScrollBar *pScrollBar) is called...
and in this if the nsBCode is SB_PAGEDOWN im always getting the nPos value is 0 eventhough the position of the slider is changed...and when the nsBCode is SB_THUMBPOSITION evrything works fine...
Please help me regarding the same...
|
|
|
|
|
p_1960 wrote: and in this if the nsBCode is SB_PAGEDOWN im always getting the nPos value is 0 eventhough the position of the slider is changed
MSDN says
For the TB_THUMBPOSITION and TB_THUMBTRACK notifications, the high-order word of the wParam parameter specifies the position of the slider. For all other notifications, the high-order word is zero; send the TBM_GETPOS ( GetPos ) message to determine the slider position. The lParam parameter is the handle to the trackbar.
|
|
|
|
|
can anyone please tell me how to create the message digest using openssl library in linux....
????
|
|
|
|
|
Looking at the documentation for MD5 in openssl[^], it looks like it's as simple as calling the MD5 function:
const char* msg = "This is my message";
unsigned char digest[MD5_DIGEST_LENGTH];
MD5(msg, strlen(msg) * sizeof(char), digest);
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanx man...
I did it but that method is a bit long using the evp.h
|
|
|
|
|
shrims4u wrote: that method is a bit long using the evp.h
Sorry - don't quite follow you there.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
As the title suggests I'm having a problem compiling MFC based applications, this problem started immediately after installing the windows server 2003 platform SDK and now even when I try to compile a new MFC project I get the following errors:
c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C2146: syntax error : missing ';' before identifier 'HwndMSWheel'
1>c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C2433: 'HWND' : 'inline' not permitted on data declarations
1>c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk\include\zmouse.h(142) : error C2065: 'PUINT' : undeclared identifier
1>c:\program files\microsoft platform sdk\include\zmouse.h(142) : error C2146: syntax error : missing ')' before identifier 'puiMsh_MsgMouseWheel'
1>c:\program files\microsoft platform sdk\include\zmouse.h(142) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk\include\zmouse.h(147) : error C2059: syntax error : ')'
1>c:\program files\microsoft platform sdk\include\zmouse.h(148) : error C2143: syntax error : missing ';' before '{'
1>c:\program files\microsoft platform sdk\include\zmouse.h(148) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\program files\microsoft platform sdk\include\commctrl.h(29) : error C2146: syntax error : missing ';' before identifier 'HRESULT'
1>c:\program files\microsoft platform sdk\include\commctrl.h(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk\include\commctrl.h(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk\include\prsht.h(97) : error C2065: 'CALLBACK' : undeclared identifier
1>c:\program files\microsoft platform sdk\include\prsht.h(97) : error C2065: 'LPFNPSPCALLBACKA' : undeclared identifier
1>c:\program files\microsoft platform sdk\include\prsht.h(97) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk\include\prsht.h(97) : fatal error C1903: unable to recover from previous error(s); stopping compilation
in some cases I solved the problem by including/moving windows.h and defining WIN32_LEAN_AND_MEAN at the top of stdafx.h. However for large projects that uses static and dynamic linking to other libraries the proposed solution did not work. I'm not really sure why this is happening as I've also tried to reinstall the platform SDK to no avail.
Any help is appreciated.
Thanx
|
|
|
|
|
Check the vc++ directory settings( Tools->options->vc++ directories ) of visual studio. if it contains path from SDK folder, remove it.
|
|
|
|
|
I would if I don't want to use the SDK...
|
|
|
|
|
Whats is that SDK 2003 has and VS 2005 dosen't...?
|
|
|
|
|
I need to use Icftypes for firewall controlling which is only available in platform SDK
|
|
|
|
|
Well in that case you have to download the latest SDK
|
|
|
|
|
I would try a repair/reinstall of VS 2005 through Add/Remove Programs.
The platform SDK installer can change some paths or configurations and it may be faster to just do the repair than to try to track down a few changes.
|
|
|
|
|
hi all,
i want to convert bstr to chra[];
eg:- char a[256];
BSTR bstr=L"hello";
i want hello into a
thank you
|
|
|
|