สมมุตินะคะว่ารูปของเราจะมีขนาดไม่แน่นอนอะคะ โดยที่ความสูงจะอยู่ในช่วง 20-25 pixel และความกว้างจะอยู่ในช่วง 6-15 pixel แต่ว่าขนาดของรูปที่เราต้องการคือ 10*10 เราจะใช้หลักการใดในการ resize อะคะ(โดยไม่ใช้ฟังก์ชัน resize นะคะ)

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

sirn Sat, 03/01/2009 - 18:16

ในที่นี้หมายถึง scale ให้ภาพขนาดไม่เกิน 10x10 หรือเปล่าครับ? หรือต้องการให้ออกมาแล้ว crop ให้เหลือ 10x10 เป๊ะๆ เลย?

cpblue Sat, 03/01/2009 - 18:36

seamcarving ครับช่วยได้แต่ไม่แน่ใจรูปเล็กขนาดนั้นจะพอรักษาส่วนหลักๆของรูปได้รึป่าว

This link : rsizr

anu Sat, 03/01/2009 - 21:19

หาด้านยาวก่อน แล้วกำหนดขนาดด้านยาวให้ไม่เกินที่กำหนด แล้วก็ย่อด้านที่สั้นกว่าตามสัดส่วน

แบบนี้รึเปล่าครับ

cwt Sun, 04/01/2009 - 02:18

แบบรักษาสัดสวน หาด้านยาวก่อน แล้วหาอัตราส่วนด้านยาวต่อ 10 pixel แล้วคำนวณด้านสั้น
แบบ crop หาด้านสั้นก่อน แล้วหาอัตราส่วนด้านสั้นต่อ 10 pixel แล้วคำนวณด้านยาว แล้ว crop ด้านยาวให้เหลือแค่ 10

DevilAngel Sun, 04/01/2009 - 14:07

ขอโทษนะคะตามที่คุณ cwt บอก ใช่อย่างนี้หรือเปล่าอะคะ คือสมมุติ ภาพที่เข้ามา สูง23 กว้าง12 แต่เราต้องการสูง10กว้าง10 หลังจากนั้นก็ทำการหาอัตราส่วน ด้านยาว(23)ต่อ 10 pixel ก็คือ 23/10 = 2.3 แล้วยังไงต่ออะคะ (เข้าใจแค่นี้เองอะคะ) ( TT__TT ช่วยหน่อยคะ )

ดูแล้วไม่น่าจะเป็นปัญหาด้าน programming แต่เป็นเรื่องตรรกะมากกว่า ซึ่งเรื่องนี้คงช่วยกันยาก
แต่โดยหลัก ๆ การเปลี่ยนขนาดรูปน่าจะแบ่งได้สามแบบครับ

  • resize โดยรักษา proportion อัตราส่วนความกว้างต่อความสูง ของรูปที่ได้ จะเท่ากับรูปเดิม ทำให้รูปที่ออกมาไม่เพี้ยน
  • corp คือตัดเอาบางส่วนออก ให้ได้ขนาดหรืออัตราส่วนที่ต้องการ
  • resize โดยไม่รักษา proportion อัตราส่วนความกว้างต่อความสูง เปลี่ยน คุณภาพรูปที่ได้แย่แน่นอน ผมรับรอง

optimal คงเป็นแบบแรก แต่หาก requirement เป็น 10x10 ควร corp ก่อน แล้ว resize แบบแรกเอา ปัญหาคือ จะตัดตรงไหนออก

ง่ายสุด ก็ต้องกำหนด requirement ว่ารูปที่ใช้ต้องมี ความกว้าง == ความสูง จะได้ resize เป็น 10x10 ง่ายหน่อย

BioLawCom.De

DevilAngel Tue, 06/01/2009 - 23:19

คิดว่าคงไม่สามารถที่จะ crop ได้อะค่ะ เพราะว่า input ที่เข้ามาก็เรียกได้ว่าเป็นเนื้อหาแบบสุดๆ
แล้วอะคะ ความจริงแล้ว ภาพที่ต้องการอะคะ ไม่จำเป็นต้องเป็นขนาด 10*10 ก็ได้ แต่มีข้อแม้ที่ว่า
input ที่เข้ามาจะอยู่ในช่วง 20-25 * 6-15 อยากจะทำให้มันขนาดมันเท่ากัน(ขนาดใดขนาดหนึ่งอะคะ) แล้วก็ไม่อยากให้ข้อมูลมันเพี้ยนไปเท่าใดนักอะคะ เพราะมันจะมีผลต่อขั้นตอนการรู้จำอะคะ

DevilAngel Tue, 06/01/2009 - 23:22

หากใครมีแนวคิด ช่วยแนะนำด้วยนะคะ(ขอบคุณทุกๆๆคำแนะนำค่ะ)

DevilAngel Wed, 07/01/2009 - 19:23

ตอนนี้หาวิธีได้แล้วค่ะ (เพื่อนช่วยอีกเช่นกัน) แต่ก็ต้องขอบคุณทุกๆ คนด้วยค่ะ

DevilAngel Wed, 07/01/2009 - 22:49

มันไม่ใช่วิธีที่ดีเท่าไหร่นะคะ แต่เป็นวิธีที่ใช้ได้ตอนนี้อะคะ คือ เหมือนกับว่าสร้าง plate ว่างๆ
ขึ้นมา 1 อัน แต่ขนาดต้องใหญ่กว่าชุดข้อมูลของเราอะคะ แล้วก็นำข้อมูลที่เราหามาได้ยัดใส่ลงไปอะคะ แนวคิดเป็นประมาณนั้นอะคะ แต่ยังไม่ได้เขียนเป็นโค้ดอะคะ

DevilAngel Thu, 08/01/2009 - 12:44

เป็นงานเกี่ยวกับการรู้จำตัวอักษรนะคะแต่เป็นบนมือถือ ส่วนที่ถามนี้เป็นส่วนที่ว่าเมื่อได้ตัวอักษรมาแล้วอะคะ แต่ขนาดมันไม่เท่ากัน ต้องทำให้เท่ากันก่อน เพราะ output ที่ได้นี่ จะไปเป็น input ในส่วนของ neural ซึ่งจำนวน input ที่เข้ามามันต้องเท่ากันอะคะ(ทั้งหลักการ และ การโปรแกรมตัวเองก็ยังไม่เก่งเท่าไหร่อะคะ ก็เลยมึนๆ งงๆ บ่อยๆ อาศัยหลายๆคนช่วยแนะอะคะ)