필터 지우기
필터 지우기

I want to make a 3x2 matrix on an image

조회 수: 1 (최근 30일)
Zaheer Abbas
Zaheer Abbas 2016년 12월 11일
댓글: afif fadilah 2017년 3월 8일
I want to make a 2x3 matrix on each component of an image. Attached is the picture.
Actually, I want to make a matrix, so that each dot in the picture lies in different index of the matrix. I need code. Kindly help please!
  댓글 수: 2
Guillaume
Guillaume 2016년 12월 12일
Your patterns appear to be 2x2 or 3x2 (rows by columns is the matlab convention), not 2x3.
An example of the desired output for the above input would clarify what you need.
Zaheer Abbas
Zaheer Abbas 2016년 12월 12일
You guessed it right. My mistake. I want 3x2 matrix. This is my actual image. These are braille dots. In Braille, Each letter is composed with the combination of 6 cells. So I have cropped each letter of Braille and made it a single component/image.
This is the cropped image.
Now I want to make a 3x2 matrix on each. so that each dot lies in each index of a matrix. Hope it is clear now! If not then you can ask more. I Need help!

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2016년 12월 11일
편집: Image Analyst 2016년 12월 11일
Get a library of all possible dot patterns then just paste onto the desired location in your image. See my copy and paste code, attached.
  댓글 수: 11
Image Analyst
Image Analyst 2016년 12월 12일
You'll need to find whole rows, because otherwise you if you have, say, a pair of dots, you won't know if it's in the first row, second row, or third row. You won't know that with your method of dilating and taking the bounding box. So you're going to have to find tops and bottoms of the whole line of characters first. Then you can do what you said to get the right and left sides. THEN you can crop the bounding boxes, and then divide into 6 zones to determine what zones have a spot in them.
afif fadilah
afif fadilah 2017년 3월 8일
sir zaheer abbas, would do you like to give your code ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by