Region of Interest Part II Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.

Slides:



Advertisements
Similar presentations
NA-MIC National Alliance for Medical Image Computing Slicer Tutorial Module: Segmentation May 26, 2005.
Advertisements

Pattern Recognition Ku-Yaw Chang
Medical Imaging System Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Medical Imaging System Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Software Engineering Introduction to Flowcharts Ku-Yaw Chang Assistant Professor Department of Computer Science and Information.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
2004/05/03 Clustering 1 Clustering (Part One) Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Region of Interest Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
1 TiVi80 – Spot Analyzer Welcome to the presentation of.
DIP Realized by IDL Author: Ying Li Course: computer for imaging science.
Software Engineering Chapter 6 Software requirements
Unit 8 Combinational Circuit Design and Simulation Using Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science.
Unit 8 Combinational Circuit Design and Simulation Using Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science.
Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
2004/03/22 Color Models 1 Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Unit 7 Multi-Level Gate Circuits / NAND and NOR Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Image Buffer Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
1 Chapter 15 Drawing in a Window. 2 The Window Client Area  A coordinate system that is local to the window.  It always uses the upper-left corner of.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Walk-and-Talk TM Remote Control Touch pad Pen Style Palette Erases All Marks at Once Left and Right Mouse Buttons Calibration Sends Screen Image to Printer.
Model-View-Controller Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Visual C++ Lecture 11 Friday, 29 Aug Windows Graphic User Interface l Event driven programming environment l Windows graphic libraries (X11 on Unix,
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Software Engineering Chapter 16 User Interface Design Ku-Yaw Chang Assistant Professor Department of Computer Science and Information.
Chapter 3 Control Flow Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
MFC Windows Programming: Document/View Approach More detailed notes at: 360/notes-html/class15.htm.
計算機視覺 (Computer Vision) 課程簡介 Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Walk-and-Talk TM Remote Control Touch pad Pen Style Palette Erases All Marks at Once Left and Right Mouse Buttons Calibration Sends Screen Image to Printer.
Chapter Two The UML – Unified Modeling Language Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Chapter 3 The mouse and the Keyboard. Getting input from the Mouse.
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
Chapter 18 The Observer Pattern Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Object Oriented Programming Dr. Ennis-Cole CECS 5100.
Microsoft Foundation Class (MFC) Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Bitmap (Chapter 15).
Chapter2: Drawing a Window. Review: Introducing MFC.
Inequalities. SymbolMeaning Greater Than =Equal Greater Than or Equal To.
NA-MIC National Alliance for Medical Image Computing Using Annotations in Slicer 4.0 Yong Zhang, Kilian Pohl June 2010.
Software Engineering Chapter 10 Formal Specification Ku-Yaw Chang Assistant Professor Department of Computer Science and Information.
Chapter2: Drawing a Window
Chapter 2 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 2-1 Solving Linear.
2004/03/23 Image Analysis 1 Image Processing & Analysis Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Chapter 21 Design Patterns Reviewed from the New Perspective of Object-Oriented Design Ku-Yaw Chang Assistant Professor, Department.
Automating Scoliosis Analysis By Amar Sahai Thomas Jefferson High School for Science and Technology
Menu Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Software Engineering Chapter 6 Software requirements Ku-Yaw Chang Assistant Professor Department of Computer Science and Information.
Click on this button to move to the previous slide of your notebook. Click on this button to move to the next slide of your notebook. Click on this button.
Chapter Eight Expanding Our Horizons Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering.
Paint Tutorial Created February 2006 Start Paint: Start>Programs>Accessories>Paint.
Chapter Ten The Bridge Pattern Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Computer Science I More class examples. Paths. Jigsaw. Tolerance. Classwork/homework: Your class project. Post proposal for midterm project.
Chapter 6 Structures Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Chapter 5 Pointers and Arrays Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Chapter2: Drawing a Window. Drawing with the GDI.
Chapter Six The Facade Pattern
به نام خدایی که یاد او، مایه ی آرامش واقعی است.
Automating Scoliosis Analysis
Objective Solve equations in one variable that contain variable terms on both sides.
The department of Computer Engineering Shin ho hwan
Objective Solve equations in one variable that contain variable terms on both sides.
Presentation transcript:

Region of Interest Part II Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University

22004/05/12Medical Imaging System Outline Get DC Drawing Mode - XOR Complete ROI

32004/05/12Medical Imaging System Get DC Provided by the framework void C***View::OnDraw(CDC* pDC) void C***View::OnDraw(CDC* pDC) To obtain DC elsewhere CDC * pDC = GetDC(); : // use pDC … // use pDC … :ReleaseDC(pDC);

42004/05/12Medical Imaging System Drawing Mode - XOR AB A  B A  B )  B = A ( A  B )  B = A

52004/05/12Medical Imaging System Drawing Mode - XOR Specifies the new drawing mode. pDC->SetROP2(R2_XORPEN); pDC->SetROP2(R2_XORPEN);

62004/05/12Medical Imaging System Complete ROI Add a state variable m_bLBtnDown into C***View To keep track of the status of the mouse’s left button To keep track of the status of the mouse’s left button Initialization : set to be ‘false’ Initialization : set to be ‘false’ OnLButtonDown : set to be ‘true’ OnLButtonDown : set to be ‘true’ OnLButtonUp : set to be ‘false’ OnLButtonUp : set to be ‘false’

72004/05/12Medical Imaging System Complete ROI Use two variables to record the first and second points (C***View) m_ptFirst and m_ptSecond m_ptFirst and m_ptSecondOnLButtonDown m_ptFirst = point; m_ptFirst = point; m_ptSecond = point; m_ptSecond = point;OnLButtonUp

82004/05/12Medical Imaging System Complete ROI OnMouseMove Check m_bLBtnDown Check m_bLBtnDown Erase previous (old) ROI Erase previous (old) ROI m_ptFirst and m_ptSecond m_ptSecond = point; m_ptSecond = point; Draw new ROI Draw new ROI m_ptFirst and m_ptSecond

92004/05/12Medical Imaging System Other Considerations Scrollbar CPoint GetScrollPosition() CPoint GetScrollPosition() Display ratio m_nDisplayRatio m_nDisplayRatio