remove column from image
이전 댓글 표시
I need code for Remove columns from the image width having value = 0
댓글 수: 4
Jan
2017년 4월 7일
Please do not let us guess the details.
shaimaa mohamed
2017년 4월 7일
편집: Image Analyst
2017년 4월 7일
Jan
2017년 4월 8일
Do you mean: "having ONLY value = 0" or "having ANY value = 0"?
Image Analyst
2017년 4월 8일
Steps 4 and 5 are nonsense. The rect in imcrop() is [xLeft, yTop, width, height] NOT [x1,x2,y1,y2] so you can see that your computations will not work with that at all. For example y1 is .25 the height and you're trying to extract an additional .8 of the height, which means the bottom of the crop would be at 1.05 the height, which is outside the image.
Step 7 seems to be some sort of additional cropping method but I don't see that it's necessary at all. In fact I don't even see why the first crop is needed unless you want to speed up the subsequent operations by a few microseconds.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 ROI-Based Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!