필터 지우기
필터 지우기

Is it normal for a code with 2 nested for loops to run for more than 2 hours ?

조회 수: 1 (최근 30일)
I have a color image and I am using two for loops to separate pixel pairs. Its been running for the past 2 hours. Is it normal ? I have made sure there are no infinite loops.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 3월 30일
That depends on the number of iterations and the task done each iteration. You didn't give enough details
  댓글 수: 1
Shounak Shastri
Shounak Shastri 2014년 3월 30일
I took peppers.png as input and put it in 2 for loops to get pixel pairs using a 4-adjacency neighborhood. Its resolution is '384 by 512'

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by