|
Hi all,
I'm at the beginning of a new software project aimed at designing image mosaics and asking myself if some of you has good recipes or ideas to share:
1. if or if not to use image libraries, and why;
2. which libraries, if any, are best;
3. which target platform: win32 or 64;
4. whether or not use WPF Imaging;
5. ....
Any suggestion will be very much appreciated.
Thanks,
gsa
|
|
|
|
|
gsaielli wrote: if or if not to use image libraries, and why;
no if you don't have them and don't want them, yes if you want an excuse to get one or already have one.
gsaielli wrote: which libraries, if any, are best;
Depends on your actual usage, especially the last questions.
gsaielli wrote: which target platform: win32 or 64;
which do you have, or which do you want an excuse to use?
gsaielli wrote: whether or not use WPF Imaging;
do you know WPF imaging or do you want an excuse to learn it?
obviously the answer is many things. Almost all of the questions could be any answer. How far have you started? have you looked at all? what languages? what requirements?
You could easily have asked, "I would like to store data, what is the best database? what should I use to access it?" In many questions like this there are many, many answers, and people are often stumped to know exactly where to start in answering you.
So what are your other requirements? deadline? speed? resolution limits/requirements? Do you need to index your own photos or a photo library by tonal sorting? have you already done this? what is your language of preference? what have you started with? what is your goal?
A design does not end by saying, "I want to write a program" jot down a list of what it needs to do, these are your requirements. Make sure to included limits, hopes, etc. You want to fence it in as much as possible. If it has to be done in an hour, you don't want a language or library that takes too long, and you probably want to pre-index your photos. If you have a tonal based photo library you are already a step ahead, if you don't you will have to qualify the thumbnails based on overall tonal quality of each image. etc.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."
|
|
|
|
|
AoA
I am doing a GDI+ project. In which i created a user control with transparent background. That is fine. But when i add this control two times in a from, it works strange. When a Control overlays other, the background of the control came as the background of the main form not the user control.
Please help me to solve this problem. The link of the file is given below.
Click to Download[^]
Waiting for any kind of help.
Regards,
Nazar Hussain
|
|
|
|
|
Do you have the WS_CLIPSIBLINGS style set for your control window? It might be clipping its sibling and that's why you see the main window as the background. Something to look at anyhow.
BTW, it's very unlikely anyone is going to click on a link to an executable.
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
Thanks sir,
You guide me to the exact thing. Please guide me further, when i use WS_CLIPSIBLINGS in CreateParams overloaded function of the UserControl and run the application. It gave an Win32Exception "The parameter is incorrect".
Please guide me to how to implement WS_CLIPSIBLINGS
And sorry for last time exe file. I will always upload source project next when needed.
|
|
|
|
|
NazarHussain wrote: Please guide me to how to implement WS_CLIPSIBLINGS
I OR it with the other window styles when I call the Create method on the window. But I'm using C++ and WTL for a framework lately. You haven't said but I get the impression you might be using C#. If so, I know next to nothing about C#.
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
hello
I Have Question....
What write a Program that can the object or picture similar object1
object1
[IMG]http://i30.tinypic.com/24q5r7n.jpg[/IMG]
with analyze object2 place in object or picture similar object2
object2
[IMG]http://i25.tinypic.com/2a604nn.jpg[/IMG]
that can been minimize space of object2 .
?????????
Do you known sample code or you can help about this program.????
hi......
|
|
|
|
|
Hi All!
I'm a opengl-newbie and I want to add a simple example to complete my application.
Today my application is splitted into 2 tab:
- first tab contains game's settings
- second tab should contain the game!
The problem is that I'm not able to create the game using that tab :'(
I found a lot of example that create a simple opengl application using a window, but no example uses a single Windows::Forms::TabPage^ (I'm usign visual studio)
I hope it can be done, because the first tab required me a lot of time..
ps:for the second tab,just to begin,a simple black "screen" can be enough 
|
|
|
|
|
It can be done. I know, because i've done it with the Win32 SysTabControl32 on which (i'm fairly certain) Windows.Forms.TabPage is based.
Make sure the window you're hosting in the tab is set up correctly (clip siblings, OWNDC, etc) and that you're handling all painting messages (don't let the framework try to draw / double-buffer for you).
On a side note: this is a bit of a crappy UI choice. I'm not sure what sort of settings you're putting on the first page, but if you ever plan on allowing users to modify things they might want to see reflected in the game, the nature of tabs will prevent them from seeing their changes on-the-fly.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
you can implement such things so users can modify things on-the-fly (i.e. realtime), and from any event that you may wish to be the trigger, i.e. changes in a control (e.g. tab page) reflected in the 'game' realtime, and visa versa.
oh, and here is an link to a brief example of how it could be done (seems OP Athos1984 already has it, so
placing it here may be a good reference for others too):
http://www.gamedev.net/community/forums/topic.asp?topic_id=499979
modified on Tuesday, July 8, 2008 7:26 PM
|
|
|
|
|
hi all,
I have a example coding which drawing to bitmap,but i am confusing the coding below which high light with red color.I am not sure what is the usage of Reverse() after AddPie().
protected override void OnPaint(PaintEventArgs pe)
{
gaugeBitmap = new Bitmap(Width, Height, pe.Graphics);
Graphics ggr = Graphics.FromImage(gaugeBitmap);
ggr.FillRectangle(new SolidBrush(BackColor), ClientRectangle);
GraphicsPath gp = new GraphicsPath();
gp.Reset();<br />
gp.AddPie();<br />
gp.Reverse();
ggr.SetClip(gp);
ggr.FillPie();
ggr.SetClip(ClientRectangle);
ggr.DrawArc();
}
thanks in advance
regards
cocoonwls
|
|
|
|
|
GraphicsPath.Reverse()[^]
Since you omitted big chunks of code, along with all relevant parameters, it's anyone's guess what the purpose of the call is. Comment it out and see what changes...
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
hi shog,
Thanks for your information.I got it
|
|
|
|
|
hi,,,,,
I have Pixel information for all letters in one Font(xxxxx Font).
I want to make BITMAP FONT using pixel information....
How can i move forward!!!!!!
Any sugestions!!!
Thank u....
|
|
|
|
|
First, you need to look at the specification for how the pixels are specified in the font file. Then you simply need to create a black and white, or other color, bitmap with those pixels filled in.
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
Hi,
iam in c# windows application (.net framework 2.0)
iam displaying an image(*.jpg) in PictureBox Control..
now i want to draw a line or rectangle or any arrow mark over on image...
please help me how can i do this..
murali krishna
|
|
|
|
|
|
I wish to create a simple tool to open a video file ( for example an AVI, or wmv file) and allow user to edit the video file.
For example the user should be able to mark different portions of video and copy it to new video. So that the new movie file contains the selected parts only.
I read that DirectShow editing service allow us to do the job.
i have modified the sample code http://msdn.microsoft.com/en-us/library/ms787592(VS.85).aspx and no luck so far. I think i am missing something, since my knowledge in DirectX and grphics is very poor, I cant figure it out.
I added the following lines to get the splitable interface
IAMTimelineSplittable *pSplittable = NULL;
HRESULT hr = pSourceObj->QueryInterface(IID_IAMTimelineSplittable, (void **)&pSplittable);
and called the SplitAt function to split time line
hr = pSplittable->SplitAt2(5);
All thease function return success ( S_OK) and then i render the Timeline to file, it is same as the orginal file. No Splits actually happened.
Why? Any idea
Thanks
Anil
|
|
|
|
|
hi
I have task to join different map images on single Map.
How to do this
|
|
|
|
|
Are you asking how to make a large image from a mosaic of smaller ones or is the problem with aligning and matching the different parts of the map?
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
aadilali wrote: I have task to join different map images on single Map.
How to do this
I like to use Scotch Tape[^]. It's a little bit more pricey than the generic transparent tape, but tends to stay clear longer and is less prone to tearing. A good drafting table can also be helpful.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Hi All,
I have a big VRML model of a building which I divided into small vrml files such as: floor1.wrl, floor2.wrl, roof.wrl, and so on. Basically, I used 'Inline' node to import all of these small vrml files into my mother vrml file called 'building.wrl'.
I am using VB.NET form interface to allow the user to interact with the geometry. It works fine when I load any of the small vrml files (e.g. floor1.wrl) and then I can obtain the name of 3D elements in floor1 so that the user can change their texture. The problem is that when I load the main vrml file 'building.wrl' I am unable to interact with 3D elements inside the 'Inline' node.
So my question: how can I interact with the element/geometry inside an 'Inline' wrl file? Any feedabck or suggestion is very appreciated. I searched the internet for solution but could not find any.
Please please help
Thanks
|
|
|
|
|
Hello
I have build DirectShow filter graph (VideoCapture -> SampleGrabber -> NullRenderer).
VideoCapture is a filter getting a video stream from a camera (FOURCC code Y160, Media subtype raw).
When I am trying to get a sample from the camera I am getting a message "failed to get sample" in output window (debug mode) and a buffer being filled with zeros.
Please give some advice on how to solve this problem.
|
|
|
|
|
You need to include some code, there is a million and one reasons for a sample failure.
|
|
|
|
|
 This code build a graph. The graph consist of the following filters
m_PDF - the filter which is able to receive the IR stream
m_pSampleGrabber - the SampleGrabber filter
m_pNullRenderer - the NullRenderer filter
.....
if (!MakeBuilder())
{
TRACE(TEXT("Cannot instantiate graph builder"));
return E_FAIL;
}
hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC,
IID_IGraphBuilder, (void **)&m_pGB);
hr = m_pBuilder->SetFiltergraph(m_pGB);
hr = AddRTSPFilter(ip);
hr = AddSampleGrabber();
hr = AddNullRenderer();
hr = ConnectFilters(m_pGB, m_pDF, m_pSampleGrabber);
hr = ConnectFilters(m_pGB, m_pSampleGrabber, m_pNullRenderer);
SetFormat(5);
IMediaControl *pMC = NULL;
hr = m_pGB->QueryInterface(IID_IMediaControl, reinterpret_cast<pvoid>(&pMC));
LONG msTimeout = 1000;
FILTER_STATE pfs;
long lSize = 0;
ISampleGrabber* pGrab = NULL;
if (m_pSampleGrabber)
{
hr = m_pSampleGrabber->QueryInterface( IID_ISampleGrabber, (void**) &pGrab );
if ( SUCCEEDED( hr ) )
{
hr = pGrab->SetOneShot(TRUE);
hr = pGrab->SetBufferSamples(TRUE);
}
}
hr = pMC->Run();
long evCode;
IMediaEventEx* m_pEvent;
hr = m_pGB->QueryInterface(IID_IMediaEventEx, (void **)&m_pEvent);
m_pEvent->WaitForCompletion(INFINITE, &evCode);
long cbBuffer = 0;
hr = pGrab->GetCurrentBuffer(&cbBuffer, NULL);
char *pBuffer = new char[cbBuffer];
if (!pBuffer)
{
}
hr = pGrab->GetCurrentBuffer(&cbBuffer, (long*)pBuffer);
if (FAILED(hr))
{
pMC->Stop();
SAFE_RELEASE( pMC );
return hr;
}
SAFE_RELEASE( pMC );
.....
</pvoid>
ip - the IP address of camera
IID_IRTSPConfig - Image streaming is set up through RTSP
HRESULT NULL_Capture::AddRTSPFilter(CString ip)
{
HRESULT hr = S_OK;
BOOL bMulticast = true;
hr = CoCreateInstance(CLSID_FLIRRTSP, NULL, CLSCTX_INPROC,
IID_IBaseFilter, (void **)&m_pDF);
CComPtr<irtspconfig> pCfg;
hr = m_pDF->QueryInterface(IID_IRTSPConfig, (void **)&pCfg);
hr = pCfg->SetMulticast(bMulticast);
hr = m_pGB->AddFilter(m_pDF, L"Video Capture");
return hr;
}
HRESULT NULL_Capture::AddNullRenderer()
{
HRESULT hr = S_OK;
hr = CoCreateInstance(CLSID_NullRenderer, NULL, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, (LPVOID*) &m_pNullRenderer);
hr = m_pGB->AddFilter(m_pNullRenderer, L"NullRenderer");
return hr;
}
HRESULT NULL_Capture::AddSampleGrabber()
{
HRESULT hr = S_OK;
AM_MEDIA_TYPE* pmt = NULL;
ISampleGrabber *pCfg = NULL;
if (m_pSampleGrabber == NULL)
{
hr = CoCreateInstance( CLSID_SampleGrabber, NULL, CLSCTX_INPROC_SERVER, IID_IBaseFilter, reinterpret_cast<pvoid>(&m_pSampleGrabber));
hr = m_pSampleGrabber->QueryInterface(IID_ISampleGrabber, (void **)&pCfg);
hr = m_pGB->AddFilter( m_pSampleGrabber, L"Grabber");
AM_MEDIA_TYPE mt;
hr = pCfg->GetConnectedMediaType(&mt);
ZeroMemory(&mt, sizeof(AM_MEDIA_TYPE));
mt.majortype = MEDIATYPE_Video;
mt.subtype = GUID_MEDIASUBTYPE_Y160;
hr = pCfg->SetMediaType(&mt);
hr = pGrabber->SetOneShot(TRUE);
hr = pGrabber->SetBufferSamples(TRUE);
}
return hr;
}
BOOL NULL_Capture::MakeBuilder()
{
HRESULT hr;
if (m_pBuilder)
return TRUE;
hr = CoCreateInstance(CLSID_CaptureGraphBuilder2, NULL,
CLSCTX_INPROC, IID_ICaptureGraphBuilder2,
(void **)&m_pBuilder);
if ( NULL == m_pBuilder ) {
return FALSE;
}
return TRUE;
}
HRESULT NULL_Capture::EnumFormats(int fmt)
{
HRESULT hr;
IAMStreamConfig *pVSC = NULL;
hr = m_pBuilder->FindInterface(&PIN_CATEGORY_CAPTURE,
&MEDIATYPE_Video, m_pDF, IID_IAMStreamConfig, (void **)&pVSC);
(fmt >= 0)
{
VIDEO_STREAM_CONFIG_CAPS scc;
AM_MEDIA_TYPE *pmt;
hr = pVSC->GetStreamCaps(fmt, &pmt, (BYTE*)&scc);
hr = pVSC->SetFormat(pmt);
DeleteMediaType(pmt);
}
return hr;
}
</pvoid></irtspconfig>
|
|
|
|
|