Menu

Showing posts with label syntax. Show all posts
Showing posts with label syntax. Show all posts

Tuesday, October 29, 2013

[Batch Script] วิธีการหาพาธของแฟ้มของไฟล์ Batch ที่กำลังประมวลผล
[Batch Script] How to Get Directory Path of Executing Batch File

เพื่อเข้าไปยังแฟ้มของไฟล์ batch ที่กำลังประมวลผล ใช้คำสั่ง
To get into directory path of executing batch file, use command
cd /d %~dp0

Tuesday, October 15, 2013

[EmguCV] วิธีการเข้าถึงพิกเซลของภาพ
[EmguCV] How to Access Pixels of Image

สมมติให้
Suppose that
  1. Image<Bgr,byte> img = new Image<Bgr,byte>();

มีสองวิธีสำหรับการเข้าถึงพิกเซลตำแหน่งแถวที่ y และหลักที่ x ของ img
There are two ways to access the pixel on the y-th row and x-th column of img

Wednesday, June 12, 2013

[Batch Script] FOR Syntax

syntax-FOR-Files
       FOR %%parameter IN (set) DO command

syntax-FOR-Folders
       FOR /D %%parameter IN (folder_set) DO command
 
 syntax-FOR-List of numbers  
       FOR /L %%parameter IN (start,step,end) DO command