I am working on image quality metrics and i have found that edge stability measure can be used to evaluate different edge detectors according to a paper "statistical evaluation of image quality measures". I am finding it difficult to implement this metric. So can anyone help me or suggest ideas to implement it.
As I told that OnMouseMove I am drawin gsome color stripes on Ruler Scale .
Suppose scale is from 1 to 10 and If i am clicked on 2 and moved a little then it draws stripe of 5inch width.after that i want cursor should come at 7th Inch. So,for that i used SetCursorpos to move mouse manually after end of drawn stripe.
The question is not clear to me, but let me answer with what I think the question is.
An OnMouseMove handler is called when the mouse is moved over a window.
When SetCursorPos is called, it does not normally call OnMouseMove.
But if the new cursor position as a result of calling SetCursorPos is over the window for which the OnMouseMove handler is created, then it will be invoked.
If that is the case, you will need to set a flag before calling SetCursorPos and then check this flag inside OnMouseMove to distinguish between manually moving the mouse and calling SetCursorPos.
Remember to reset this flag inside OnMouseMove.
«_Superman_» I love work. It gives me something to do between weekends.
As U suggested that I need to set a flag before calling setCursorPos to check on MouseMove. Suppose If this flag satisfies the condition on MouseMove that movement is through SeCursorPos then it will return from there and then how will i reset tht flag on MouseMove.
Here is sample Code for this:
void CMarkWnd::OnMouseMove(UINT nFlags, CPoint point)
if(GetCapture() != this) return;
//----Calling my own Code to Draw Stripe---//
// Doing Some calculation to Find the Width---
// and then setting Mouse Cursor Position---------
This is the third time I have seen this 'question' posted.
You have not received any answers yet because you refuse to observe the forum guidelines. You will continue to receive no help until your method of enquiry improves.
1. Work out what you're trying to do
2. Work out how you intend to do this
3. Implement this plan in code.
You should NOT post a question on CodeProject when it relates to point 1.
Questions that ask about how to realize point 3 will be most favourably answered.
Consider the following contrived questions: Q1: "I have to build a shed, with a window and shelves. It should not be very basic."
Q2: "I am building a shed with shelves. I have selected part# XXX to fix the shelves to the wall. I am having trouble attaching this part to the walls with nails. I am trying YYY, is this the correct way to use part XXX?
Is there a better way for me to attach the shelves to the walls?"