Image Filtering Using Fourier Transform

In Machine Vision there is a magical trick that involves Fourier transformation of an image and I would like to share it with you today. I learned this long ago from a professor of mine but I remember back then there was not much experience and information about this on the web. Also there was no program that allowed experimenting with Fourier transformation of Images, until I developed an Android application titled Image Transformer, using OpenCV and Qt, which allows you to do just that.

Continue reading “Image Filtering Using Fourier Transform”

Embedding Fonts in Your Qt Application

Whether you are building an application or a game using Qt for desktop or mobile, you probably like to see the same fonts on the target computers or phones that you set during development. Well sometimes the fonts that you have used just don’t exist in target platforms. Follow these simple steps to embed a font in your application and guarantee that it will exactly look the same when your users run them.

Continue reading “Embedding Fonts in Your Qt Application”

How to Use Text to Speech in Qt for Windows

Unfortunately for Cross-Platform developers, there is no standard method or API that you can code once and use to have TTS (Text to Speech) in your programs. You may find some 3rd party libraries that allow a great deal of reusability in different Operating Systems but at some point they also prove to do less than what you require. Qt has promised to make this available for us in the near feature but it has been postponed all the time. The main reason is that there is a huge race between major Software companies (Microsoft, Google and Apple) in this field and it seems that they somehow make it work in totally different ways on purpose. So anyway that is why I decided to share the method to have TTS in Qt in all well known operating systems and I am going to start with the easiest one, which is Windows. Continue reading “How to Use Text to Speech in Qt for Windows”

How to Get the Position of a Widget in a Cell (QTableWidget)

In this article I describe how you can get the position (row and column) of a Widget in a Cell, or to be precise, how to get row and column of a QWidget in a QTableWidget. This is specially useful in case you have a button or any other widget and you want to perform a task specific to that widget when it is pressed or triggered in any way.

Continue reading “How to Get the Position of a Widget in a Cell (QTableWidget)”

باقی

دست را تیغ زنم باز همان حس لطیفت باقیست

چشم را شویم و سیمای پدیدار توام تکراریست

چاره کار مجانین سفر از غمکده ها نیست دریغا

قرص کامل شده ماه به هر دور و دیاری باقیست

Dediler

Soru sordukça bu iş zorlaşıyor, bakma unut, takma bırak,

dediler. Ben seni buldum diye artık ne gerek var, sus unut,

dediler. Bu tesadüf olamaz, biz bu cisimler değiliz demek isterdim ama, aaahh,

dediler. Başka bir yerde seninle sevişirken, seni gördum, o değildir,

dediler. Kafir oldum, bana mümin dediler.